Wrox Programmer Forums
|
ASP.NET 1.0 and 1.1 Professional For advanced ASP.NET 1.x coders. Beginning-level questions will be redirected to other forums. NOT for "classic" ASP 3 or the newer ASP.NET 2.0 and 3.5
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 1.0 and 1.1 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 11th, 2005, 02:05 AM
Friend of Wrox
 
Join Date: Oct 2004
Posts: 109
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to anubhav.kumar
Default Localization Problem in ASP.Net

Hi,

We are developing a website for a specific region of our country.
We want to detect the City by which the user is accessing our site so as we can provide some automatic content specific to his / her city on the web page. Tne users are not to be supposed as registered. So we don't have any personal information about the user in advance like address or city.

I have heard but not seen that through server side script it is possible to detect the Region from where the session is created. How can ASp.Net Localization or some thing else can help in this area. Any other solution other than ASP.Net is also welcomed.


Anubhav Kumar
__________________
Anubhav Kumar
http://anubhavtimepass.blogspot.com/
 
Old May 11th, 2005, 09:57 AM
planoie's Avatar
Friend of Wrox
 
Join Date: Aug 2003
Posts: 5,407
Thanks: 0
Thanked 16 Times in 16 Posts
Default

The server variables contains some information that might usable for culture information...something like this:

SERVER["HTTP_USER_AGENT"]:
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.6) Gecko/20050225 Firefox/1.0.1

The culture info is buried in there, but digging it out could be tricky given the different ways the browser sends its user agent info.

I don't think is a way to accurately detect where PHYSICALLY a user is located. There are databases out there that allow you to look up an IP address and determine where it is, but even then it might not be that accurate. Plus that would probably be an intensive process.

It would probably be a better use of time to just provide the user the ability to select their region. You don't have to build any login system, just save what they choose as a cookie.

-Peter





Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom HTTP 404 Problem w/ASP to ASP.NET kwilliams ASP.NET 2.0 Professional 7 November 26th, 2007 04:17 PM
ASP.NET 2.0 Client Time Throgh Localization babarrana ASP.NET 1.0 and 1.1 Basics 0 July 28th, 2007 10:15 AM
Problem Converting C# to VB.NET in ASP.NET kwilliams ASP.NET 2.0 Basics 0 February 9th, 2007 06:22 PM
Problem with Exercise in Beg. asp.net for VB.net! mrfella71 BOOK: Beginning ASP.NET 1.0 1 October 23rd, 2005 12:06 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.