Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

I want to list all countries in my dropdownlist, where can i get that web service?

Tags:

asp.net

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?

like image 791
Vibin Jith Avatar asked Feb 09 '10 12:02

Vibin Jith


2 Answers

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.

like image 199
jason Avatar answered Sep 18 '22 18:09

jason


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 ).

like image 36
devdimi Avatar answered Sep 20 '22 18:09

devdimi