开发者

Global implicit and local explicit localization. Is this possible?

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜