Determine client's location??

L

Laszlo Csabi

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

Laszlo
 
V

Visual Barty

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
 
G

George Durzi

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.
 
K

Ken Cox [Microsoft MVP]

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

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,014
Latest member
BiancaFix3

Latest Threads

Top