Click here to Skip to main content
15,909,953 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir i have 2 dropdownlist at a page.and i want 1 thing that after selecting the 'select' means '0 index',the second 1 dropdownlist should be unbound.and should be run according to selection of the first 1 dropdown...plz help me
Posted

 
Share this answer
 
You can disable second dropdown on first's selected index changed by applying condition if selected index == 0
 
Share this answer
 
try this
if(dropdown1.selectedvalue=="0")
{
dropdown2.items.clear();

}

else if(dropdown1.selectedvalue=="1")
{
//bind data according to the selected value
}
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900