Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Localization

Status
Not open for further replies.

kettch

Programmer
Mar 5, 2001
110
US
Is there any way to find out the culture of the visitor to a asp.net website? Or even just the UTC offset would be great. For the desktop applications all of the date and time data in the database is stored in UTC and then converted to local time according to wherever the local culture/timezone is. Is there anyway to do this in asp.net without making them choose? The less user interaction, the better because this application is designed for use with mobile phones and other small devices.

Thanks
 
Take a look at this, to determine your caller's timezone:


You can't really determine their culture, but you can determine their language preference via the HTTP Accept-Language header. The user's browser sends a list of preferred languages (in descending order of preference), and you would walk the list, looking for a match.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top