How do you default a dropdown list when a particular item is selected? I have a two drop down lists, one for state and one for county.
If the user chooses a state outside of Alabama, I need the county to default to “Out of state” and without allowing the user to change it without changing the state back to Alabama.
This is what I tried, which didn’t work
If lstBusState.sel ectedItem.Value = “Al” then
lusBuscounty.se lectedItem.valu e =” something”
else
lusBuscounty.se lectedItem.valu e = “outofstate”
End if
If the user chooses a state outside of Alabama, I need the county to default to “Out of state” and without allowing the user to change it without changing the state back to Alabama.
This is what I tried, which didn’t work
If lstBusState.sel ectedItem.Value = “Al” then
lusBuscounty.se lectedItem.valu e =” something”
else
lusBuscounty.se lectedItem.valu e = “outofstate”
End if
Comment