无法本地化的aspx页面 [英] Unable to localized aspx page
问题描述
大家好,
我正在asp.net进行网站开发。我使用了Master Page概念和内容页面。我使用下拉列表更改其语言。
< img src =http://www.daniweb.com/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy80LzI1MWJjZmM4NTY1ZDNiM2EwYmU2ODcyY2FkZmU0YTcyLnBuZw%3D% 3D / 500/>
如图所示。 2,如果我拿这个文件hirarchy然后应用程序工作完美。
但如果我改变了类似的东西[参见图。没有。 1]添加了一个文件夹并在其中添加实际内容文件。然后网站停止本地化过程。
如何调用App_LocalResource文件。
得到答案...
只需在每个文件夹中创建App_Resource即可覆盖此问题。喜欢
----------------------
项目结构
- ------------------------
解决方案LocalizationDemo
++ App_Code
++ App_GlobalResources
++ App_LocalResources
++ Bin
++ PagesFolder
++++ App_LocalResources
+++++++++++++++++ $ $ $ ++ ++++ +++ ContentPage.aspx.de.resx
+++++++++++++ $ + $ + + + + $ $ $ ++ +++ >
++++++ ContePage.aspx.vb
++ web.config
谢谢。
Hello Everyone,
I am working on website development in asp.net. where i have used Master Page concept and content page. and by using dropdownlist I am changing its language.
<img src="http://www.daniweb.com/attachments/fetch/L2ltYWdlcy9hdHRhY2htZW50cy80LzI1MWJjZmM4NTY1ZDNiM2EwYmU2ODcyY2FkZmU0YTcyLnBuZw%3D%3D/500" />
As we see in fig no. 2, if I took this file hirarchy then application works perfect.
but if I changed something like [refer fig. no. 1 ] added one folder and add actual content file inside it. then website stops localization process.
how to call that App_LocalResource Files.
Got Answer...
Simply make App_Resource in each folder to override this problem. like
----------------------
Project Structure
-------------------------
Solution LocalizationDemo
++App_Code
++App_GlobalResources
++App_LocalResources
++Bin
++PagesFolder
++++App_LocalResources
+++++++ContentPage.aspx.hi.resx
+++++++ContentPage.aspx.de.resx
+++++++ContentPage.aspx.ar.resx
++++ContePage.aspx
++++++ContePage.aspx.vb
++web.config
Thank you.
这篇关于无法本地化的aspx页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!