Globalization settings not recognised ...

Last post 05-12-2008 1:42 AM by dharnendra. 4 replies.

Sort Posts:

  • Globalization settings not recognised ...

    05-08-2008, 6:53 PM
    • Loading...
    • robby32
    • Joined on 04-13-2003, 5:38 AM
    • Posts 157

    Hi ..

    i have set the following in my web.config file but they are not taken effect or recognised .. basically i have a gridview and there is a column which has dates in it . and i would like it to take the format inthe web.config file.. can anyone help on this ?

     

    here is what is in the web.config

    <system.web>

    <globalization
        requestEncoding="utf-8"
        responseEncoding="utf-8"
        culture = "en-au"
        uiCulture = "en-au" />
    </system.web>

     

     

  • Re: Globalization settings not recognised ...

    05-09-2008, 3:15 AM

     Try below one,

    <globalization requestEncoding="utf-8" 
    responseEncoding="utf-8"
    fileEncoding=""
    culture="en-au"
    uiCulture="en-au"
    enableClientBasedCulture="false"
    responseHeaderEncoding="utf-8"
    resourceProviderFactoryType=""
    enableBestFitResponseEncoding="false" />
    Shah Dharnendra G
    Analyst Programmer,
    GTL-Ahmedabad
  • Re: Globalization settings not recognised ...

    05-11-2008, 6:37 PM
    • Loading...
    • robby32
    • Joined on 04-13-2003, 5:38 AM
    • Posts 157

    Hi,

    i tried this and didnt change

    i use a few usercontrols and in the code-behind i have the following

    this.actData.Locale = new System.Globalization.CultureInfo("en-AU");

    i set the globalization in the web config to german just to see if the date format would be different and no change.. Do i need to set it in regional settings under windows and take out the line above from the code ?

    thanks

    robby

  • Re: Globalization settings not recognised ...

    05-12-2008, 1:24 AM
    One rule I always follow with globalization - if you're going to provide resources for a specific culture than also provide the neutral culture as well.Please take care of it.

    Also, you need to set uiCulture to "auto" for the browser settings to be used.

     

    Shah Dharnendra G
    Analyst Programmer,
    GTL-Ahmedabad
  • Re: Globalization settings not recognised ...

    05-12-2008, 1:42 AM
    Answer

     Refer the below link for example,

    http://www.codeproject.com/KB/aspnet/localizationByVivekTakur.aspx 

    Shah Dharnendra G
    Analyst Programmer,
    GTL-Ahmedabad
Page 1 of 1 (5 items)