Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
in my project i have to save user address details based on their selection of districts and states and countries how can i have these all country,state,districts in my application? help me out
Thanks in advance
Posted
Comments
Sergey Alexandrovich Kryukov 16-Feb-14 1:01am    
What do you mean "how"? By writing some code. Do you have any specific problem? What have you tried so far?

—SA

1 solution

You need to create different Tables in your Database for Countries, States and Districts.
Pull data from those tables and populate the DropDownLists.

After user selects all the DropDownList and Submits the data, you need to get the SelectedValues of each DropDownList and formulate a SQL Query based on those values.

Then execute the SQL Query with the help of ADO.NET Objects.

That's it. :)
 
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