seth
seth

Reputation: 145

Global implicit and local explicit localization. Is this possible?

Can we set global implicit localization for control or local explicit localization?

Upvotes: 0

Views: 603

Answers (2)

Muhammad Akhtar
Muhammad Akhtar

Reputation: 52241

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>

Upvotes: 1

Paweł Dyda
Paweł Dyda

Reputation: 18662

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.

Upvotes: 1

Related Questions