asp.net c# dependent listboxes

liunx

Guest
hello!

i have a listbox that is populated with data (a "name" field) from a table in an access database. what i want to do is when a user selects a "name" from the listbox, depending on that selection (the relationship between the two tables involved is an id) the other listbox will be populated with data (another "name" field) from another table. how would i go about doing that in a c# asp.net web application? i have been searching on the net and can't find anything. :( any help would be very much appreciated!!

thank you!

Quinn*What you need to do is set the listbost to autopost back to the server. With that post back you need to grab the value in the selection list and grab the value. You can then query the database to grab the value and display it on the page.

Eric
 
Back
Top