Click here to Skip to main content
15,910,877 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to display in one dropdownlist wen we select state names eg:kerala then corresponding another dropdownlist districts should show,wen we select on it sta.eg: kerala - kollam like this.using only two dropdownlist.simple code(asp.net).

please help any one please.
Posted
Updated 18-Dec-12 3:06am
v2
Comments
Member 9581488 18-Dec-12 9:11am    
On selectedIndexChanged event(set autopostback=true) of State Dropdown,Bind Dropdown for District By passing stateID From state dropdown.

Please go through the following articles and try to implement.
It is a very simple task.
1. Creating Cascading DropDownLists in ASP.Net[^].
2. Ajax Cascading Dropdownlist Sample with database using asp.net[^].

Thanks...
 
Share this answer
 
Comments
__TR__ 18-Dec-12 9:26am    
+5
Thanks a lot @__TR__.
Have a look at: CascadingDropDown Demonstration[^]

Best regards
Espen Harlinn
 
Share this answer
 
Comments
__TR__ 18-Dec-12 9:26am    
+5
Espen Harlinn 18-Dec-12 9:53am    
Thank you, TR :-D
Sergey Alexandrovich Kryukov 29-Dec-12 20:56pm    
Nice sample/demo link, a 5.
—SA
Espen Harlinn 30-Dec-12 5:25am    
Thank you, Sergey :-D
 
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