Asp.Net News
Free Tech Magazines
Asp.Net Web Hosting
Suggest Us
Link to Us
Feeds Subscription
Questions & Answers
Tips & Tricks
 country dropdownlist binded by city dropdownlist
Posted by Sharmila on  9/17/2009 2:13:51 AM Category: C#
Add to my favorites
Email to friend
How to implement , on selecting a country should show the relevant city names in the city dropdownlist?

Post Your Reply Post New Question

 Viewer's Reply
Use Cascading Dropdown list control
Answered By Moderator1 on 9/18/2009 10:48:10 AM

For your requirement, you can try cascading dropdown control found in Ajax Control Tool Kit.
country dropdownlist binded by city dropdownlist
Answered By Dalvinder Singh on 10/3/2009 9:16:12 AM
first of all, you have to make relationship between two table as primary key and foreign key in database only then you can sort out your problem.
you have to bind country in dropdownlist on another(manage_state.aspx) then on dropdownlist selectedindexchange event , you have to take id of country_dropdownlist and bind with database.
how to implement selected event
Answered By Dalvinder Singh on 10/3/2009 9:17:47 AM
you have to double click on dropdownlist then you will create selected_event change
Post Your Reply If you still have problem, post it again under this reply for better response.

Sponsored by
Integrating Silverlight 4 with SharePoint 2010 - Free 42 Page Sample Chapter
When Good HTML Goes Bad: How You Can Protect Your Web Applications
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!