I want to retrieve the country telephone code using ASP.NET C#... I've searched at google and the MSDN website but what I've found was the way how to retrieve the ISO Country Code..
Asked
Active
Viewed 3,714 times
4
-
1How is this + a Dictionary not enough? http://en.wikipedia.org/wiki/List_of_country_calling_codes – Piskvor left the building Oct 27 '11 at 07:25
-
Here's the scenario: I wanted to retrieve the telephone code everytime the user visits my website... not only in the philippines but any country. – Roberto Becher Oct 27 '11 at 07:30
-
So you have an internet website and you want to get the anonymous user's telephone code from his IP? – Tim Schmelter Oct 27 '11 at 07:39
-
yeah.. absolutely.. that was my task – Roberto Becher Oct 27 '11 at 07:43
1 Answers
5
There isn't anything built in.
You can use some web service to aquire this information, such as this one: http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso

Svarog
- 2,188
- 15
- 21
-
It would have been nice if you also have shown how to call this webservice from code. – Tim Schmelter Oct 27 '11 at 08:47
-
1Tim - Add http://www.oorsprong.org/websamples.countryinfo/CountryInfoService.wso?WSDL as a service reference, and than use it as though it was an ordinary DLL reference. – Svarog Oct 27 '11 at 08:54