How to Set Browsers Culture RRS feed

  • Question

  • User103949372 posted


    I have written this kind of code in my Web Page

    Dim ci As New System.Globalization.CultureInfo("en-us")

    Now When I test my Application it shows me the Formate set in Browsers Language.
    But Whenever I deploy this it only shows me M/d/yyyy format regardless of Browsers Settings.
    If i Change settings in my browser, even then it only shows M/d/yyyy format.

    How can we change this?

    Tuesday, September 19, 2006 11:51 PM

All replies

  • User-1936818034 posted

    Hi~ No matter where the app's deployed, that pattern should be the same, as its for a specific culture but not browser setting~

    But it's strange behavior in your machine~ Are u shure there's no other code that may cause that?

    Friday, September 22, 2006 12:38 AM
  • User-503940700 posted


    Have you set the culture="auto" in config? From my article

    in IE the user can change the culture by going to Internet Options->General->Language. For
    this to work, we need to set both the Culture and the UICulture to auto and
    enableClientBasedCulture = true as:
    GLOBALIZATION culture="auto" uiculture="auto" enableClientBasedCulture="”true”" />

    You can set this at the Page level too.

    Hope this helps,


    Friday, September 22, 2006 2:20 PM
  • User103949372 posted
    I have't cade any thing else then this
    Saturday, September 23, 2006 1:06 PM
  • User-503940700 posted

    >I have't cade any thing else then this

    Sorry I did not understand this. Do you mean that you have already used the auto settings in the config?


    Saturday, September 23, 2006 4:01 PM