L Laszlo Csabi Nov 23, 2003 #1 Anybody knows how can I determine client's location on an ASP.NET page? Laszlo
V Visual Barty Nov 23, 2003 #2 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
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 Nov 23, 2003 #3 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.
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] Nov 23, 2003 #4 There are commercial controls that will try to determine the location of the ISP: http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=1789
There are commercial controls that will try to determine the location of the ISP: http://www.asp.net/ControlGallery/ControlDetail.aspx?Control=1789
W William LaMartin Nov 23, 2003 #5 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.
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.
K Ken Cox [Microsoft MVP] Nov 23, 2003 #6 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".
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".