Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Autoupdating List Boxes

Status
Not open for further replies.

mdr227

Programmer
Nov 17, 2000
114
US
I wanted to check and see the best way to automatically update a series of list boxes, each one would depend on what the previous selection is. For example in a simple case I have two list boxes on a page lstState and lstWidget. A user selects which state they are from by using the lstState selection list and I want to update the available choices in the lstWidget to be based on what Widgets are available in the selected state. I would like to do this without reloading the page. Thank you.
 
Client side javascript is going to be your best bet -- build up arrays full of your possible choices, and then add onChange events to each of your listboxes that check and change values each time.

If you hit specific roadblocks, post over in the javascript forum for more help.

Most solutions you get here will be with a page reload, since ASP is a server side language.

:)
Paul Prewett
penny.gif
penny.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top