Hi folks,
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.re sx, LanguagePtBr.re sx, 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
It works fine... but I would like to use it on my HTML tags using the expression
as the following example:
My question is:
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
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.re sx, LanguagePtBr.re sx, 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
Code:
globalresourcestring = (String)GetGlobalResourceObject("LanguageEnUs", "Greetings")
Code:
<%$ Resources:Class, ResourceID %>
Code:
<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
Comment