Multiple Languages(English, French) on ASP.NET Page

北城以北 提交于 2019-11-29 18:42:05

问题


I was just wondering what is the best way to handle multiple languages on a web page? Should I create an event in the load where I change the labels of all my controls to the approrpiate language text, or is there a better way? I am using .NET framework, thanks.


回答1:


For ASP.NET, use Resource files. This will let you provide multilingual functionality and you can add translations without needing to recompile.

http://www.beansoftware.com/ASP.NET-Tutorials/Globalisation-Multilingual-CultureInfo.aspx




回答2:


You will want to look at the section of the MSDN documentation that deals with localization and globalization of ASP.NET apps:

http://msdn.microsoft.com/en-us/library/c6zyy3s9.aspx



来源:https://stackoverflow.com/questions/470366/multiple-languagesenglish-french-on-asp-net-page

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!