开发者

Global implicit and local explicit localization. Is this possible?

开发者 https://www.devze.com 2023-03-08 13:01 出处:网络
Can we set global implicit localization for control or local explicit localiz开发者_运维百科ation?If you want to use implicit Localization, you have to use App_LocalResources, so \"global\" is not pos

Can we set global implicit localization for control or local explicit localiz开发者_运维百科ation?


If you want to use implicit Localization, you have to use App_LocalResources, so "global" is not possible nor needed actually.

You can obviously use explicit Localization with App_LocalResources, although I see no benefit here.


Are you Looking this String Text = Resources.GlobalRes.KeyName ? This will get the resource text from the Global Resources.

And if you want to get the value from the local Resource, then it will be GetLocalResourceObject("yourkey").ToString();

Edit: if you want to directly set the Gloabl Resource text to your label, do so as follows:

<asp:Label ID="Label4" runat="server" Text="<%$ Resources:GlobalRes, KeyName %>"></asp:Label>
0

精彩评论

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