Determine client's location??

  • Thread starter Thread starter Laszlo Csabi
  • Start date Start date
L

Laszlo Csabi

Anybody knows how can I determine client's location on an ASP.NET page?

Laszlo
 
This snippet will get the browser's default location:

Thread.CurrentThread.CurrentCulture =
CultureInfo.CreateSpecificCulture(Request.UserLanguages(0))
Thread.CurrentThread.CurrentUICulture = New
CultureInfo(Request.UserLanguages(0))

Hope this helps.

Bart A. Robinson, MCP
 
What do you mean by location?
Check out System.Globalization, that may help you, if I'm correct in
assuming that you mean country, etc.
 
There is a web service at http://www.cdyne.com/web-services.aspx that will
resolve an IP address to an owner.

But this is a pretty crude tool, since, for example, if the person comes in
through Sprint, AOL, or such you will not get a very meaningful location.
 
Thanks for the link.

Yes, it is at best a stab in the dark try to associate an IP with the
geographical location of the computer. I'm not even sure that this is what
the poster really means by "location".
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top