CurrentCulture incorrectly defaulting to en-US in ASP.net

后端 未结 9 1237
执笔经年
执笔经年 2020-12-08 14:37

I have just migrated around 100 ASP.net sites from IIS 6 on Windows Sever 2003 to IIS 7 on Windows 2008. I\'ve just noticed that various pieces of code that use things like

9条回答
  •  萌比男神i
    2020-12-08 15:01

    I had this problem too, but I solved it. You must set the following values:

    CultureInfo.DefaultThreadCurrentCulture = "en-GB";
    CultureInfo.DefaultThreadCurrentUICulture = "en-GB";
    

提交回复
热议问题