开发者

ASP.NET Local Resources Localizacion

开发者 https://www.devze.com 2022-12-22 10:45 出处:网络
We use resx fil开发者_StackOverflow社区es to localize my web applications. We have created a bunch of resource files under different APP_LocalResource folders and

We use resx fil开发者_StackOverflow社区es to localize my web applications. We have created a bunch of resource files under different APP_LocalResource folders and we are accessing that resources from pages and user controls through meta:resourcekey.

We want to move all the resource files into one folder, without changing meta:resourcekey

Is that possible?


i think it's not possible without change meta:resourcekey. but you can put in App_GlobalResources folder and used by direct assign to text property.

Example:

<asp:Literal ID="lblSearch" Text="<%$Resources:GeneralResource, General_Search%>" runat="server"></asp:Literal>
0

精彩评论

暂无评论...
验证码 换一张
取 消