esposito Posted May 3, 2004 Posted May 3, 2004 Hello, do you know if it is possible to retrieve the country from the connected user in ASP.NET? Any help will be appreciated. Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
sj1187534 Posted May 3, 2004 Posted May 3, 2004 Hi... You can find a .NET web service for IP to country mapping at this link. http://www.xmlwebservices.cc/index_Samples.htm SJ Quote
esposito Posted May 4, 2004 Author Posted May 4, 2004 Thanks. Anyway, I believe I have sorted out my problem using the following 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? Hi... You can find a .NET web service for IP to country mapping at this link. http://www.xmlwebservices.cc/index_Samples.htm SJ Quote Pasquale Esposito Perugia - Italy http://www.geocities.com/espositosoftware
Moderators Robby Posted May 4, 2004 Moderators Posted May 4, 2004 It will get the language such as .... en-us Quote Visit...Bassic Software
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.