获取 C# 中的当前语言
在 Composite C1 中,我需要获取当前选择的语言,即用户通过 语言切换器包 在 ASP.NET 用户控件中。
当然我可以从 PathInfo 中读取它,但我敢打赌有一个函数可以做到这一点。
如何在 C# 中以编程方式访问该值?
In Composite C1 I need to fetch the currently selected language, that the user selected over the language switcher package in an ASP.NET user control.
Of course I could read it from the PathInfo, but I bet there is a function for this.
How can I access the value programmatically in C#?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
纯原生 c#
http://msdn.microsoft.com/en-us/library /system.globalization.cultureinfo.currentculture.aspx
Pure vanilla c#
http://msdn.microsoft.com/en-us/library/system.globalization.cultureinfo.currentculture.aspx