Concatenating multiple resource keys and assiging to server control tag

Last post 07-05-2009 3:49 AM by vn_nilesh@hotmail.com. 1 replies.

Sort Posts:

  • Concatenating multiple resource keys and assiging to server control tag

    07-02-2009, 10:41 AM
    • Member
      12 point Member
    • kadam_suresh
    • Member since 06-02-2009, 5:04 AM
    • Posts 3

    Hi All,

    I am trying to assign error message concatenating values from multiple resource keys as follows:

    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtUserName" Display="None" ErrorMessage="<%$ Resources:WebResources,Label_Text_UserName%><%$ Resources:WebResources,IsRequired%>" EnableClientScript="true" >

    But this is not working out, please let me know the syntax if this is possible. I want to do it only on aspx not in code behind.

    Thanks in advance.

    Suresh Kadam.

     

    Filed under:
  • Re: Concatenating multiple resource keys and assiging to server control tag

    07-05-2009, 3:49 AM
    Answer

     You can use a custom expression builder. There are some cutom expression builders available which you can make you of. Please refer to the following link

    http://weblogs.asp.net/ricardoperes/archive/2009/03/04/useful-expression-builders.aspx

     

    Regards

    Nilesh
    http://nileshgule.blogspot.com


    Please mark this as "ANSWER" if it helps you
Page 1 of 1 (2 items)