I am trying to change the language of my website dinamically. So, i have created a global resource file(.resx) for each language I want to display. For example: LanguageEnUs.resx, LanguagePtBr.resx, etc...
The user would be able to switch the language whenever he wants, so I must load the .resx on his request.
I have already done it programatically using
Expand|Select|Wrap|Line Numbers
- globalresourcestring = (String)GetGlobalResourceObject("LanguageEnUs", "Greetings")
Expand|Select|Wrap|Line Numbers
- <%$ Resources:Class, ResourceID %>
Expand|Select|Wrap|Line Numbers
- <asp:Label ID="lblErrorMsg" runat="server" Text="<%$ Resources:LanguageEnUs, lblErrorsgText %>"></asp:Label>
How do I change the static LanguageEnUs in this expression for a variable that I can recover from somewhere else? Or better... is this possible?
Thanks in advance,
Fernando Mello