本文介紹了ASP.NET 頁面上的多種語言(英語、法語)的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!
問題描述
我只是想知道在網頁上處理多種語言的最佳方式是什么?我應該在負載中創建一個事件,將所有控件的標簽更改為適當的語言文本,還是有更好的方法?我正在使用 .NET 框架,謝謝.
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.
推薦答案
對于 ASP.NET,使用資源文件.這將使您能夠提供多語言功能,并且您可以添加翻譯而無需重新編譯.
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
這篇關于ASP.NET 頁面上的多種語言(英語、法語)的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!
【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!