久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

    <bdo id='lPhMI'></bdo><ul id='lPhMI'></ul>

<small id='lPhMI'></small><noframes id='lPhMI'>

    1. <legend id='lPhMI'><style id='lPhMI'><dir id='lPhMI'><q id='lPhMI'></q></dir></style></legend>
    2. <i id='lPhMI'><tr id='lPhMI'><dt id='lPhMI'><q id='lPhMI'><span id='lPhMI'><b id='lPhMI'><form id='lPhMI'><ins id='lPhMI'></ins><ul id='lPhMI'></ul><sub id='lPhMI'></sub></form><legend id='lPhMI'></legend><bdo id='lPhMI'><pre id='lPhMI'><center id='lPhMI'></center></pre></bdo></b><th id='lPhMI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='lPhMI'><tfoot id='lPhMI'></tfoot><dl id='lPhMI'><fieldset id='lPhMI'></fieldset></dl></div>

      1. <tfoot id='lPhMI'></tfoot>

        ASP.NET 中的全局資源與本地資源

        Global resource vs. Local resource in ASP.NET(ASP.NET 中的全局資源與本地資源)
              <tbody id='JA3Nh'></tbody>
            <i id='JA3Nh'><tr id='JA3Nh'><dt id='JA3Nh'><q id='JA3Nh'><span id='JA3Nh'><b id='JA3Nh'><form id='JA3Nh'><ins id='JA3Nh'></ins><ul id='JA3Nh'></ul><sub id='JA3Nh'></sub></form><legend id='JA3Nh'></legend><bdo id='JA3Nh'><pre id='JA3Nh'><center id='JA3Nh'></center></pre></bdo></b><th id='JA3Nh'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='JA3Nh'><tfoot id='JA3Nh'></tfoot><dl id='JA3Nh'><fieldset id='JA3Nh'></fieldset></dl></div>
            <legend id='JA3Nh'><style id='JA3Nh'><dir id='JA3Nh'><q id='JA3Nh'></q></dir></style></legend>
          • <small id='JA3Nh'></small><noframes id='JA3Nh'>

              <tfoot id='JA3Nh'></tfoot>

                  <bdo id='JA3Nh'></bdo><ul id='JA3Nh'></ul>

                  本文介紹了ASP.NET 中的全局資源與本地資源的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我們使用 resx 文件來本地化我們的 Web 應用程序.當只有一個頁面使用某個短語時,我們通常會創建本地 resx 文件(映射到特定頁面),而當多個頁面需要該短語時,我們會創建全局 resx 文件.
                  但是全局 resx 文件的好處是它們是一個類,你可以像調用類的屬性一樣調用短語:

                  We use resx files to localize our web applications. We usually create local resx files (that map to a specific page) when only one page uses a certain phrase, and a global resx file when more than one page needs the phrase.
                  But the good thing about global resx files is that they are a class, and you can call the phrases like you call properties of a class:

                  Resource.UI.iNotFound

                  Resource.UI.iNotFound

                  所以我在想 - 為什么要有本地 resx 文件?為什么不對整個應用程序使用一個全局 resx 文件,這樣可以避免調用不存在的短語導致運行時錯誤?

                  So I was thinking - why have local resx files at all? why not use one global resx file for the whole application, and that way avoid runtime errors from calling non-existent phrases?

                  我確定有一個很好的答案,我只是不知道它是什么......

                  I'm sure there's a good answer for that, I just don't know what it is....

                  推薦答案

                  我一直在尋找指南,并在 MSDN:

                  I kept on looking for guidelines, and found this in MSDN:

                  在全局和本地資源文件之間進行選擇

                  您可以使用全局的任意組合和 Web 中的本地資源文件應用.通常,您添加資源到全局資源文件當你想分享資源時頁面之間.全球資源資源文件也是強類型的當您想要訪問文件時以編程方式.

                  You can use any combination of global and local resource files in the Web application. Generally, you add resources to a global resource file when you want to share the resources between pages. Resources in global resource files are also strongly typed for when you want to access the files programmatically.

                  但是,全局資源文件可以變大,如果你存儲所有其中的本地化資源.全球的資源文件也可以更多難以管理,如果不止一個開發人員正在研究不同的頁面但在單個資源文件中.

                  However, global resource files can become large, if you store all localized resources in them. Global resource files can also be more difficult to manage, if more than one developer is working on different pages but in a single resource file.

                  本地資源文件更容易管理單個 ASP.NET 的資源網頁.但你不能分享頁面之間的資源.此外,你可能會創建很多本地的資源文件,如果你有很多頁面必須本地化為許多語言.如果網站很大許多文件夾和語言,本地資源可以快速擴展中的組件數應用領域.

                  Local resource files make it easier to manage resources for a single ASP.NET Web page. But you cannot share resources between pages. Additionally, you might create lots of local resource files, if you have many pages that must be localized into many languages. If sites are large with many folders and languages, local resources can quickly expand the number of assemblies in the application domain.

                  當您更改默認資源文件時,本地或全局,ASP.NET重新編譯資源并重新啟動ASP.NET 應用程序.這個可以影響你的整體表現地點.如果添加衛星資源文件,它不會導致重新編譯資源,但ASP.NET 應用程序將重新啟動.

                  When you make a change to a default resource file, either local or global, ASP.NET recompiles the resources and restarts the ASP.NET application. This can affect the overall performance of your site. If you add satellite resource files, it does not cause a recompilation of resources, but the ASP.NET application will restart.

                  所以看來編程團隊需要權衡每種方法的優缺點,然后選擇對他們有利的方法.

                  So it seems that it's really up to the programming team to weigh the pros and cons of each method and choose what's good for them.

                  這篇關于ASP.NET 中的全局資源與本地資源的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

                  【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

                  相關文檔推薦

                  GoogleWebAuthorizationBroker in MVC For Google Drive Access(MVC 中的 GoogleWebAuthorizationBroker 用于 Google Drive 訪問)
                  Why do I get System.UnauthorizedAccessException Access to the path #39;Google.Apis.Auth#39; is denied(為什么我得到 System.UnauthorizedAccessException 對路徑“Google.Apis.Auth的訪問被拒絕) - IT屋-程序員軟件開發技術分享
                  Dynamically built SiteMapPath in asp.net(在 asp.net 中動態構建的 SiteMapPath)
                  ASP.NET Exception: The remote name could not be resolved: #39;apiconnector.com#39;(ASP.NET 異常:無法解析遠程名稱:“apiconnector.com)
                  Does a MasterPage know what page is being displayed?(MasterPage 是否知道正在顯示的頁面?)
                  ASP.net MVC - Navigation and highlighting the quot;currentquot; link(ASP.net MVC - 導航和突出顯示“當前;關聯)

                    <small id='dU75N'></small><noframes id='dU75N'>

                  1. <legend id='dU75N'><style id='dU75N'><dir id='dU75N'><q id='dU75N'></q></dir></style></legend>
                    <tfoot id='dU75N'></tfoot>

                      • <bdo id='dU75N'></bdo><ul id='dU75N'></ul>

                          <i id='dU75N'><tr id='dU75N'><dt id='dU75N'><q id='dU75N'><span id='dU75N'><b id='dU75N'><form id='dU75N'><ins id='dU75N'></ins><ul id='dU75N'></ul><sub id='dU75N'></sub></form><legend id='dU75N'></legend><bdo id='dU75N'><pre id='dU75N'><center id='dU75N'></center></pre></bdo></b><th id='dU75N'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='dU75N'><tfoot id='dU75N'></tfoot><dl id='dU75N'><fieldset id='dU75N'></fieldset></dl></div>
                            <tbody id='dU75N'></tbody>
                            主站蜘蛛池模板: 免费欧美视频 | 日韩欧美一区二区三区免费观看 | 少妇一级淫片免费播放 | xnxx 日本免费 | 亚洲免费在线 | 五月婷婷 六月丁香 | 久久成人人人人精品欧 | 亚洲免费在线 | 国产极品91 | 涩涩片影院 | 99这里只有精品视频 | 亚洲欧美日韩久久久 | 国产亚洲精品久久久久动 | 欧美一区二区免费视频 | 亚洲免费视频网址 | 成人超碰在线 | 国产精品a久久久久 | 欧美精品久久久久久久久久 | 日韩精品久久久久久 | 一区二区在线免费观看视频 | 日韩不卡在线 | 亚洲h在线观看 | 国产电影精品久久 | 国产精品日韩欧美一区二区三区 | 美女久久视频 | 日本黄色一级片视频 | 久久久久久久av | 黄色国产大片 | 岛国毛片在线观看 | 天天综合操 | 亚洲女人的天堂 | 久久久国产精品入口麻豆 | 97视频成人 | 国产一区二区麻豆 | 中文字幕视频在线观看免费 | 午夜视频在线观看网站 | 免费一级毛片 | 亚洲国产一区在线 | 天天插日日操 | 国产精品视频免费观看 | 日本视频免费观看 |