Click here to Skip to main content
15,918,742 members
Please Sign up or sign in to vote.
2.00/5 (2 votes)
See more:
Hi Guys

I am looking a sample for the functionality where there are 3 dropdowns. One is Country, second is State/Province and the 3rd is City. Based on the Country dropdown selection, State/Province dropdown values should be populated. Also the values in the City dropdown should also be populated based on the State/Province dropdown selection.

Could anyone please help me out on getting a sample for this.

Regards
Chiraag
Posted
Updated 26-Sep-13 7:46am
v3
Comments
Ron Beyer 26-Sep-13 13:10pm    
Country and State/Province dependencies are OK, but I would avoid doing the city one. There are thousands of cities in a particular state/province and I would hate to have to scroll through them all. You could do an auto-complete text box instead or after the user submits it verify the name against the database. Or you could skip all that and just have the user enter the postal code and look up the country/state/city from that... If multiple cities per postal code, just ask them to choose.
Member 10285501 26-Sep-13 13:33pm    
Thanks Ron But i'm a indian student and our professor didn't allow us to go in that way...
they all are wants our work as they want...
i'm not a experienced coding master and same idea like you i've suggested to proffessor he denied to do that thing so i'll have to go as per his way only...

By the way thanksss Smile | :)

1 solution

 
Share this answer
 
Comments
Maciej Los 26-Sep-13 16:02pm    
Sounds promisingly ;)
+5!
ridoy 27-Sep-13 3:13am    
Probably you forget to vote Maciej,:) :).
Maciej Los 27-Sep-13 3:22am    
Done. Sorry...
ridoy 27-Sep-13 3:24am    
No sorry,sometimes it happens in case of me also.Thank you,cheers! :)

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