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?
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.
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 ).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With