ErrorMessage display with validators

Discussion in 'ASP .Net' started by paul.hester@gmail.com, May 29, 2006.

  1. Guest

    Hi all,

    Is there any way to customize the error message display with
    validators. For example, with the following snippet:

    <tr>
    <td>
    <asp:RequiredFieldValidator runat="server"
    ControlToValidate="userName" Display="Dynamic"
    EnableClientScript="false" ErrorMessage="Please enter your
    name"></asp:RequiredFieldValidator>
    </td>
    </tr>

    The container row and cell are always rendered. Is it possible to
    somehow have the html elements inside the validator with a placeholder
    telling it where to display the error message, so that they're only
    rendered when an error occurs?

    Thanks,

    Paul
     
    , May 29, 2006
    #1
    1. Advertising

  2. Guest

    Does anyone know if this is possible?

    Thanks,

    Paul
     
    , May 29, 2006
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kenny

    ErrorMessage

    Kenny, Jul 5, 2003, in forum: ASP .Net
    Replies:
    1
    Views:
    498
    David Waz...
    Jul 6, 2003
  2. Edmilson

    Errormessage in CustomValidator

    Edmilson, Jul 10, 2003, in forum: ASP .Net
    Replies:
    0
    Views:
    393
    Edmilson
    Jul 10, 2003
  3. James
    Replies:
    4
    Views:
    7,146
    James
    Aug 17, 2004
  4. Ratman
    Replies:
    0
    Views:
    676
    Ratman
    Sep 14, 2004
  5. cp
    Replies:
    3
    Views:
    210
    Jason
    Dec 24, 2004
Loading...

Share This Page