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

  • <i id='z10gj'><tr id='z10gj'><dt id='z10gj'><q id='z10gj'><span id='z10gj'><b id='z10gj'><form id='z10gj'><ins id='z10gj'></ins><ul id='z10gj'></ul><sub id='z10gj'></sub></form><legend id='z10gj'></legend><bdo id='z10gj'><pre id='z10gj'><center id='z10gj'></center></pre></bdo></b><th id='z10gj'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='z10gj'><tfoot id='z10gj'></tfoot><dl id='z10gj'><fieldset id='z10gj'></fieldset></dl></div>

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

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

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

        我可以在附屬程序集中合并本地資源嗎?

        Can I combine local resources in satellite assemblies?(我可以在附屬程序集中合并本地資源嗎?)
            1. <tfoot id='2BgHG'></tfoot>
                <i id='2BgHG'><tr id='2BgHG'><dt id='2BgHG'><q id='2BgHG'><span id='2BgHG'><b id='2BgHG'><form id='2BgHG'><ins id='2BgHG'></ins><ul id='2BgHG'></ul><sub id='2BgHG'></sub></form><legend id='2BgHG'></legend><bdo id='2BgHG'><pre id='2BgHG'><center id='2BgHG'></center></pre></bdo></b><th id='2BgHG'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='2BgHG'><tfoot id='2BgHG'></tfoot><dl id='2BgHG'><fieldset id='2BgHG'></fieldset></dl></div>

                <legend id='2BgHG'><style id='2BgHG'><dir id='2BgHG'><q id='2BgHG'></q></dir></style></legend>
                  <tbody id='2BgHG'></tbody>

                <small id='2BgHG'></small><noframes id='2BgHG'>

                • <bdo id='2BgHG'></bdo><ul id='2BgHG'></ul>
                  本文介紹了我可以在附屬程序集中合并本地資源嗎?的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我有很多本地資源文件

                  • /Controls/App_LocalResources/SomeControl.ascx.resx,
                  • /Pages/App_LocalResources/SomePage.aspx.resx等

                  我想添加另一種語言,但我不想瀏覽所有文件夾并添加 SomeControl.ascx.de.resx 文件,例如,然后必須重新編譯整個想法.

                  I want to add another language and I do not want to go through all folders and add SomeControl.ascx.de.resx files for example and then have to recompile the whole think.

                  我想使用附屬程序集并將所有文件嵌入到 MyWebPage.de.dll 之類的文件中

                  I would like to use satellite assemblies and embed all the files into something like MyWebPage.de.dll

                  這在VS2003版本的全局資源中是可以的,但是我不確定在VS2008版本的本地資源中是否可以這樣做?

                  This was possible in VS2003 version for global resources, but I'm not sure can I do it in VS2008 version for local resources?

                  我正在使用以下語法訪問資源:

                  I am accessing the resource with the syntax:

                  <asp:label id="lblSomething" runat="server" meta:resourcekey="labelFirstName"/>
                  

                  推薦答案

                  您的問題不是很清楚,您是在尋找 VS2008 的功能還是 ASP.NET 框架的功能.所以我會用代碼解決方案.

                  Your question isn't really too clear on whether you are looking for a feature of VS2008 or a feature of the ASP.NET framework. So I'll go with the code solution.

                  您使用的隱式綁定語法使用 ASP.NET 的默認(rèn) LocalResourceProvider,它采用資源所在的頁面路徑來計算要加載的資源.如果您的資源存儲在其他地方,并且您仍想在前面的代碼中使用隱式綁定系統(tǒng)稅,您將需要使用您自己的 Provider.聽起來很復(fù)雜,但其實很簡單.

                  The implicit binding syntax you're using uses ASP.NET's default LocalResourceProvider which takes in the path of page under which the resources live to work out which resources to load. If your resources are stored elsewhere and you still want to use the implicit binding systax in your code in front you'll need to use your own Provider. Sounds complicated but it's fairly straightforward.

                  要做到這一點(diǎn),您需要首先將 ResourceProviderFactory 子類化

                  To do this you'll need to first subclass ResourceProviderFactory

                  并覆蓋兩者

                  IResourceProvider CreateGlobalResourceProvider(string classKey)
                  IResourceProvider CreateLocalResourceProvider(string virtualPath)
                  

                  ...然后實現(xiàn)您自己的 IResourceProvider,使用 ResourceManager 從附屬程序集中獲取資源

                  ...then implement your own IResourceProvider that gets your resources from your satellite assemblies using a ResourceManager

                  public interface IResourceProvider
                  {
                       object GetObject(string resourceKey, CultureInfo culture);
                       IResourceReader ResourceReader { get; }
                  }
                  

                  然后您需要將配置添加到您的 web.config 文件,讓 ASP.NET 知道使用您的 SatelliteResourceProviderFactory 并將您的資源移動到您的外部程序集,但這應(yīng)該是您的好去處.

                  You then need to add configuration to your web.config file to let ASP.NET know to use your SatelliteResourceProviderFactory and move your resources in to your external assemby, but that should be you good to go.

                  可以在此處找到大量文檔...在構(gòu)建數(shù)據(jù)庫資源提供程序"部分下...

                  Plenty of documentation can be found here...under the "Building a Database Resource Provider" section...

                  http://msdn.microsoft.com/en-us/庫/aa905797.aspx#exaspnet20rpm_topic4

                  這篇關(guān)于我可以在附屬程序集中合并本地資源嗎?的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

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

                  相關(guān)文檔推薦

                  Ignore whitespace while reading XML(讀取 XML 時忽略空格)
                  XML to LINQ with Checking Null Elements(帶有檢查空元素的 XML 到 LINQ)
                  Reading XML with unclosed tags in C#(在 C# 中讀取帶有未閉合標(biāo)簽的 XML)
                  Using C#, how can we pull attribute values from an XML Schema file and output that onto a CSV file?(使用 C#,我們?nèi)绾螐?XML Schema 文件中提取屬性值并將其輸出到 CSV 文件中?)
                  Parse XML with LINQ to get child elements(使用 LINQ 解析 XML 以獲取子元素)
                  Converting a XML to Generic List(將 XML 轉(zhuǎn)換為通用列表)
                • <tfoot id='vFL34'></tfoot>

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

                            <bdo id='vFL34'></bdo><ul id='vFL34'></ul>
                              <tbody id='vFL34'></tbody>
                            <i id='vFL34'><tr id='vFL34'><dt id='vFL34'><q id='vFL34'><span id='vFL34'><b id='vFL34'><form id='vFL34'><ins id='vFL34'></ins><ul id='vFL34'></ul><sub id='vFL34'></sub></form><legend id='vFL34'></legend><bdo id='vFL34'><pre id='vFL34'><center id='vFL34'></center></pre></bdo></b><th id='vFL34'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='vFL34'><tfoot id='vFL34'></tfoot><dl id='vFL34'><fieldset id='vFL34'></fieldset></dl></div>

                            <legend id='vFL34'><style id='vFL34'><dir id='vFL34'><q id='vFL34'></q></dir></style></legend>
                            主站蜘蛛池模板: 精品国产乱码久久久 | 中文字幕在线免费 | 欧美伦理一区 | 国产精品美女久久久久aⅴ国产馆 | 久久中文字幕一区 | 黄一级| 亚洲欧美自拍偷拍视频 | 激情五月激情综合网 | 99久久精品免费看国产高清 | 欧美三区视频 | 天天澡天天操 | 国产精品久久久久久久久婷婷 | 99这里只有精品视频 | 九九热精品视频在线观看 | 国产激情在线播放 | 久久久久免费精品国产小说色大师 | 日本aaa视频 | 蜜桃毛片| 中文字幕久久久 | 欧美精品成人影院 | 欧美一a | 精品一区二区观看 | www天天操| 国产精品久久久久影院色老大 | 国产亚洲精品综合一区 | 久久婷婷国产香蕉 | 九九久久这里只有精品 | 国产福利小视频 | 久久久久久久久久久久一区二区 | 国产亚洲第一页 | 美女露尿口视频 | 毛片黄| 欧美a在线| 国产高清在线精品 | 91av视频在线播放 | 男女在线网站 | 久久久影院 | 日韩欧美三区 | 99久视频 | 欧美色综合一区二区三区 | 天天噜天天干 |