Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP General > Populate List Box base on Combo Box Selection

Reply
Thread Tools

Populate List Box base on Combo Box Selection

 
 
Adrian
Guest
Posts: n/a
 
      02-18-2004
Hi
I kind of new here, but how do i get a value from a combo box and populate a list box base on the selected value from a combo box? If possible can i get a sample coding Thank you.

regards
Adria
Email : http://www.velocityreviews.com/forums/(E-Mail Removed)
 
Reply With Quote
 
 
 
 
Bullschmidt
Guest
Posts: n/a
 
      02-18-2004
Some ways to do a dependent list box are the following:
1) Reload a self-posting form (advantage: clean and fairly easy,
disadvantage: form has to reload).
2) Send all the data down to the form and let JavaScript do the work
(disadvantage: sends all the data to the form).
3) Remote scripting (disadvantage: may have security risks).
4) Hidden frames (disadvantage: complicated).

As for myself I like to keep it simple and just let the page post to
itself and then show the info in the 2nd list box based on the posted
value from the first.

ASP Design Tips - Dependent Listboxes
http://www.bullschmidt.com/devtip-de...tlistboxes.asp

Best regards,
J. Paul Schmidt, Freelance ASP Web Developer
http://www.Bullschmidt.com
ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
FormView DropdownList - On Selection Change populate Text Box Satish ASP .Net 8 03-31-2008 03:26 PM
How to reference one combo box from another combo box SM Javascript 2 04-28-2007 04:49 PM
Fill Combo Box based on another Combo Box dthmtlgod ASP General 1 11-16-2005 04:08 PM
combo box selection problem Jacques Chaurette Java 0 05-31-2005 10:11 PM
populate one list box with selected values from another list box steven.cooper@infocision.com ASP .Net 1 03-12-2005 11:29 PM



Advertisments