Click here to Skip to main content
15,891,774 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I want to link two DropDown such that selection in one dropdown make necessary changes in other and display that detail in respective fields.......

Note:I am getting data in drop down from SQL Database.
Posted

Lets say you have 2 dropdownlists named A and B. When selected value of A changes, you do something in B. If this is your scenario, you need to set the AutoPostBack[^]property of A to true. And on the SelectedIndexChanged[^] event of A, you put what you need to do to B.
 
Share this answer
 
You can have a look at the AJAX cascading drop down control[^].
 
Share this answer
 
v2
You can have cascading dropdowns (as Abhinav said) as well as normal dropdowns (aided by JQuery & JSON). Refer my answer to a similar question.
 
Share this answer
 
 
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