【发布时间】:2011-07-01 21:05:24
【问题描述】:
如果我在 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);
那么我如何访问我在应用程序其他地方设置的文化(登录后)?
谢谢。
【问题讨论】:
-
不清楚您何时设置它,也不清楚您所说的“其他地方”是什么意思。我认为这不是
System.Threading.Thread.CurrentThread.CurrentCulture的明显答案是有原因的?
标签: c# asp.net cultureinfo