Multi Language with .NET GlobalResources

  1. #1

    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:

    FieldLabel="<%$ Resources: TextFile, Default_Password %>" 
    BlankText="<%$ Resources: TextFile, Default_PasswordValidation %>"  
    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.

    <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
  2. #2
    Nobody knows the solution?
  3. #3
    Maybe the following forum post can help, see
    Geoffrey McGill
    Founder & CEO
  4. #4
    Tks, but this forum dont help me because my problem is a little different.

    I'm trying to use a ASP tag "<% %>" inside a Handler, and i think the system dont execute de command in the server, follow another example.

    <ext:Button runat=server ID="btnGravaNovaInteracao" Icon="Accept" Text="<%$ Resources: TextFile, DetalhesChamados_btnGravaNovaInteracao %>">
                                    <Click OnEvent="btnGravaNovaInteracao_Click" Before="Ext.Msg.wait('<%$ Resources: TextFile, DetalhesChamados_btnGravaNovaInteracaoMsg %>', '<%$ Resources: TextFile, DetalhesChamados_btnGravaNovaInteracaoMsgTitle %>');" />
    The wait message show the exacly text in asp tag, like "<%$ Resources: TextFile, DetalhesChamados_btnGravaNovaInteracaoMsg %>",
  5. #5
    Somebody? I still need help.
  6. #6

    since I am having exactly the same issue, I would like to know, if some has found a solution to this already?


Similar Threads

  1. Multi-language with Ext.Net
    By csharpdev in forum Examples and Extras
    Replies: 3
    Last Post: Jun 09, 2011, 8:09 AM
  2. [CLOSED] Multi-language with Ext.Net
    By csharpdev in forum 1.x Legacy Premium Help
    Replies: 9
    Last Post: Nov 30, 2010, 1:43 PM
  3. Multi Language
    By phamtuananh20052006 in forum 1.x Help
    Replies: 2
    Last Post: Jun 01, 2009, 10:44 PM
  4. Multi Language Display (Field Lable)
    By phamtuananh20052006 in forum 1.x Help
    Replies: 2
    Last Post: Jun 01, 2009, 2:57 AM
  5. Multi-language in coolite
    By Amorim in forum 1.x Help
    Replies: 0
    Last Post: Dec 11, 2008, 7:33 AM

Posting Permissions