Multi language error messages... RRS feed

  • Question

  • User1668635887 posted

    Hey, I am using 1.1 framework for a multi language site. I implemented the code at this site: http://openmymind.net/index.aspx?documentId=3

    All of the error messages are stored in an XML file and it works very well for a label, but now I am trying to figure out how it can work with an error message inside of a requiredFieldValidator like this:

       <asp:RequiredFieldValidator id="1" runat-"server" controlToValidate="Textbox" ErrorMessage="??" />

     as well... Can someone help please!!!

    Thanks in advance.


    Monday, August 21, 2006 8:41 PM

All replies

  • User-1936818034 posted
    You may use a Literal control to replace the message in page_load, or have a look into this link, it's much esaier to implement than the one you use~
    Tuesday, August 22, 2006 2:30 AM
  • User1668635887 posted

    Hey Gordon,

    I have tried to implement the way that is shown in the link, but it doesn't seem to work. I keep getting this error:

    Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.

    Compiler Error Message: BC30684: 'Strings' is a type and cannot be used as an expression.

    Source Error:

    Line 16: 
    Line 17: 
    Line 18: <%= Strings("cart_page_title") %>
    Line 19: 
    Line 20: 


    Thanks in advance.

    Wednesday, August 23, 2006 12:47 PM
  • User1668635887 posted

    Ok, I got it to work. I just wasn't referencing it correctly.



    Thursday, August 24, 2006 12:45 PM
  • User-1480706631 posted
    Tuesday, September 5, 2006 1:24 AM
  • User-1480706631 posted
    <asp:RequiredFieldValidator id="id1" runat-"server" controlToValidate="Textbox" ErrorMessage="??" meta:resourcekey="id1"/> in .resx id1.errormessage = "??"
    Tuesday, September 5, 2006 2:04 AM