Click here to Skip to main content
15,896,346 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how can i bind DropDownList with country, state and city in ASP. NET
Posted
Comments
joshrduncan2012 24-Apr-13 9:11am    
not a well formed question...need LOTS more info
Jeff Blankenburg 24-Apr-13 9:13am    
Agree with Josh. Can you show us what you mean? What code have you written already?
PRAKASH9 24-Apr-13 9:15am    
please show your code for better solution
ZurdoDev 24-Apr-13 9:20am    
There are many ways to do it. Where are you stuck?

1 solution

Did you try anything? It's very basic. The simplest method is - get the values of Country/City/State in a DataTable/DataSet.
Then there are just 2 statements which does the job:
C#
DropDownListID.DataSource = DataTableName;
DropDownListID.DataBind();
 
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