I'm having a bit of trouble using asp.net vb What I want to do is have 2 dropdown boxes
The first dropdown would have 1 2 3 for example.
the second dropdown would have a b c by default.. but
If 1 is selected I want the second dropdown to automatically select c. I don't know if JavaScript is the best answer or if anyone has done this before I would really appreciate your advice. Thank you!
You can do it server side or in Java Script. The general concept is the same though. You have to target the second dropdown in the "change" event of the first dropdown. Meaning whenever the change event fires for the first one, you update the second one
Sudo code:
You can use Javascript Onchange event.
I would proboby use the SelectedIndexChanged event on the first dropdownlist. Like this:
ASPX
VB