How to retrieve the country from the connected user

Thanks. Anyway, I believe I have sorted out my problem using the following code:

Code:
Dim myCountry As String

myCountry = Request.UserLanguages(0)

lblCountry.Text  = myCountry

Now, what I'm not sure about is whether the code above only retrieves the browser's language or the computer's nationality based on the user's IP.

Any help?

sj1187534 said:
Hi...

You can find a .NET web service for IP to country mapping at this link.

http://www.xmlwebservices.cc/index_Samples.htm

SJ
 
Back
Top