DaniWeb IT Discussion Community

DaniWeb IT Discussion Community (http://www.daniweb.com/forums/index.php)
-   ASP.NET (http://www.daniweb.com/forums/forum18.html)
-   -   Populate One Drop Down List From Another (http://www.daniweb.com/forums/thread77711.html)

wonder_gal May 8th, 2007 5:56 am
Populate One Drop Down List From Another
 
Hi,

I have 2 drop down lists, in which the selection value of the 1st drop down list will determine the content of the second drop down list.
Is that I need to use javascript function to achieve this? If yes, how should I code the javascript and how should I call the javascript from within Page_Load, can someone please kindly show me an example?
Tour advice is much appreciated. Thanks.

ManicCW May 9th, 2007 3:28 am
Re: Populate One Drop Down List From Another
 
Do you know how to populate one combo?
If you don't i suggest that you read some tutorials before.

wonder_gal May 9th, 2007 3:43 am
Re: Populate One Drop Down List From Another
 
Ya of course I knew about populating one combo. My question here is how to populate the SECOND drop down list upon changes of selected value in the FIRST drop down list.

ManicCW May 9th, 2007 6:31 am
Re: Populate One Drop Down List From Another
 
Well just populate second dropdown in SelectedIndexChanged event of the first dropdown.

w_3rabi May 9th, 2007 8:02 pm
Re: Populate One Drop Down List From Another
 
Quote:

Originally Posted by ManicCW (Post 362791)
Well just populate second dropdown in SelectedIndexChanged event of the first dropdown.

then the page will go back to server to populate the dropdown list
i guess using AJAX is more efficient

ManicCW May 10th, 2007 4:35 am
Re: Populate One Drop Down List From Another
 
Quote:

then the page will go back to server to populate the dropdown list
i guess using AJAX is more efficient
Sure it is.
But if she does not know how to populate this way it's going to be harder for her to do it ajax way.

w_3rabi May 10th, 2007 7:31 am
Re: Populate One Drop Down List From Another
 
surely


All times are GMT -4. The time now is 10:08 am.

Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2009 DaniWeb® LLC