Reputation: 931
I want to list all the countries in my dropdown list. where can i get all the names? from service right? How to do this?
Upvotes: 7
Views: 8569
Reputation: 28586
Try this one, for the English country names list
http://www.webservicex.net/country.asmx
If anyone has an internationalized example would be very good to post here.
Upvotes: 0
Reputation: 241701
Get the ISO 3166 country list; this is the world's official country list complete with official names and country codes. You can even get it in XML format and regular updates are available.
Upvotes: 6
Reputation: 2462
Web Service? Do you really consider calling Web Service each time just to get a static list of countries? This list is pretty static and does not change even each year. I would suggest to go and copy the list from any web site that has it. After that you could store it in your Database or somewhere else or even fix code it ( given that you are using it only on one place ).
Upvotes: 3