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>
精彩评论