Populate One Drop Down List From Another

Please support our ASP.NET advertiser: $4.95 a Month - ASP.NET Web Hosting – Click Here!
Reply

Join Date: Apr 2007
Posts: 10
Reputation: wonder_gal is an unknown quantity at this point 
Solved Threads: 0
wonder_gal wonder_gal is offline Offline
Newbie Poster

Populate One Drop Down List From Another

 
0
  #1
May 8th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 95
Reputation: ManicCW is an unknown quantity at this point 
Solved Threads: 11
ManicCW's Avatar
ManicCW ManicCW is offline Offline
Junior Poster in Training

Re: Populate One Drop Down List From Another

 
0
  #2
May 9th, 2007
Do you know how to populate one combo?
If you don't i suggest that you read some tutorials before.
Reply With Quote Quick reply to this message  
Join Date: Apr 2007
Posts: 10
Reputation: wonder_gal is an unknown quantity at this point 
Solved Threads: 0
wonder_gal wonder_gal is offline Offline
Newbie Poster

Re: Populate One Drop Down List From Another

 
0
  #3
May 9th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 95
Reputation: ManicCW is an unknown quantity at this point 
Solved Threads: 11
ManicCW's Avatar
ManicCW ManicCW is offline Offline
Junior Poster in Training

Re: Populate One Drop Down List From Another

 
0
  #4
May 9th, 2007
Well just populate second dropdown in SelectedIndexChanged event of the first dropdown.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 160
Reputation: w_3rabi is an unknown quantity at this point 
Solved Threads: 8
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: Populate One Drop Down List From Another

 
0
  #5
May 9th, 2007
Originally Posted by ManicCW View Post
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
programming is an art ,only for those who can understand it.
- th3 php wr3nch -
Reply With Quote Quick reply to this message  
Join Date: Nov 2005
Posts: 95
Reputation: ManicCW is an unknown quantity at this point 
Solved Threads: 11
ManicCW's Avatar
ManicCW ManicCW is offline Offline
Junior Poster in Training

Re: Populate One Drop Down List From Another

 
0
  #6
May 10th, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 160
Reputation: w_3rabi is an unknown quantity at this point 
Solved Threads: 8
w_3rabi's Avatar
w_3rabi w_3rabi is offline Offline
Junior Poster

Re: Populate One Drop Down List From Another

 
0
  #7
May 10th, 2007
surely
programming is an art ,only for those who can understand it.
- th3 php wr3nch -
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC