Multi Language with .NET GlobalResources
I'm using a Resources file to make a Multi Language app. This works to set FieldLabel propriety like this example:
Code:
<ext:TextField
ID="txtPassword"
runat="server"
InputType="Password"
FieldLabel="<%$ Resources: TextFile, Default_Password %>"
AllowBlank="false"
BlankText="<%$ Resources: TextFile, Default_PasswordValidation %>"
AnchorHorizontal="100%"
/>
But when i try to set a text into Click Handler I have the error: Literal expressions like '<%$ Resources: TextFile, Default_LoginValidation%>' are not allowed. Use <asp:Literal runat="server" Text="<%$ Resources: TextFile, Default_LoginValidation>" />. But its dont work too.
Here is the Click Handler code.
Code:
<Click Handler=" if (!#{txtUsername}.validate() || !#{txtPassword}.validate()) {
Ext.Msg.alert('Erro','<%$ Resources: TextFile, Default_LoginValidation %>');
return false;
}" />
Sorry for my English. I hope it is possible to understand my problem. Tks