AspdotnetCodes.com
Search
Articles
Books
Resources
Asp.Net News
Downloads
Free Tech Magazines
Asp.Net Web Hosting
Archives
Softwares
Newsletter
Suggest Us
Link to Us
Feeds Subscription
Articles
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 ..it 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
Hi,

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
When Good HTML Goes Bad: How You Can Protect Your Web Applications
The Art & Science of JavaScript - Free 100 Page Preview!
No Nonsense XML Web Development With PHP - Free 146 Page Preview!