如果我在Global.asax中设置用户的区域性信息,使strCulture为区域设置"en-US":
System.Threading.Thread.CurrentThread.CurrentCulture
= new System.Globalization.CultureInfo(strCulture);
System.Threading.Thread.CurrentThread.CurrentUICulture
= new System.Globalization.CultureInfo(strCulture);那么,我如何访问我在应用程序中其他位置设置的区域性(登录后)?
谢谢。
发布于 2011-07-02 06:06:21
在发布这篇文章之前,我也花了很多心思,但正如彼得在之前的评论中提到的那样,我真的想不出比使用CurrentUICulture更好的方法了。
CultureInfo currentCulture = Thread.CurrentThread.CurrentCulture;如果这不是您要找的,请给我们更多信息。:)
https://stackoverflow.com/questions/6553222
复制相似问题