Determine client's location??

  • Thread starter Thread starter Laszlo Csabi
  • Start date Start date
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.
 
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".
 
Back
Top