Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: .NET
Expertise: Intermediate
Feb 27, 2004

How to Detect a User's Language Settings

User language settings can be detected in one of the two following ways:
  1. Using the cultureinfo class current culture property:
    
    <% Response.write(Thread.CurrentThread.CurrentCulture.name) %>
    
  2. Using the request object's userlanguages collection:
    
    <%Response.Write(Request.UserLanguages(0))%>
    
Note: The UserLanguages collection can be traversed for the entire list.
Rajeev Vellore
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap
Thanks for your registration, follow us on our social networks to keep up-to-date