locked
How to identify the Regional Option selected in Client system in ASP.NET RRS feed

  • Question

  • User-1422012946 posted

    We have a Web Application built on ASP.NET (3.5) platform. We are planning to start displaying the dates and numerical data as per the end user's system (Start -> Control Panel -> Regional and Language Options -> Regional Options Tab). 

    My question is how can I read this information on server side before presenting the data to the client so that I can set the CurrentCulture as per the client's system.

    Friday, October 9, 2009 7:40 AM

Answers

  • User2077888689 posted

    Hi,

    Request.UserLanguages would give you a string array of the language preferences set in the user's browser. These will ordered as per the priority set by the user. Culture preferences set in the Regional Settings would be reflected in the browser settings as well unless it is changed manually in the browser.

    Hope this helps!

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Friday, October 9, 2009 9:50 AM