How to know the name of the country ?
-
Hi, How to know the region(country) from where a request has been initiated to a web server in ASP.NET? eg: Suppose the web server is located in US and a person has requested for a page from some other country say India, In this scenario, how the information about the name of the country(India) from where the request has initiated can be known? Thanks in advance.
Subrahmanyam K
-
Hi, How to know the region(country) from where a request has been initiated to a web server in ASP.NET? eg: Suppose the web server is located in US and a person has requested for a page from some other country say India, In this scenario, how the information about the name of the country(India) from where the request has initiated can be known? Thanks in advance.
Subrahmanyam K
Hi there. The only method I know of is by retrieving the browser's IP address and comparing to a database. This article describes this: http://www.4guysfromrolla.com/aspfaqs/ShowFAQ.asp?FAQID=179[^] But it's a method with flaws (which the article also describes). If your goal is to provide personalized settings to users based on location, you may just want to let the users select the location for themselves and store that as Profile information.
-
Hi there. The only method I know of is by retrieving the browser's IP address and comparing to a database. This article describes this: http://www.4guysfromrolla.com/aspfaqs/ShowFAQ.asp?FAQID=179[^] But it's a method with flaws (which the article also describes). If your goal is to provide personalized settings to users based on location, you may just want to let the users select the location for themselves and store that as Profile information.
Hi Mike!!! Thanks a lot for the information.
Subrahmanyam K