Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ErrorMessage display with validators

Reply
Thread Tools

ErrorMessage display with validators

 
 
paul.hester@gmail.com
Guest
Posts: n/a
 
      05-29-2006
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

 
Reply With Quote
 
 
 
 
paul.hester@gmail.com
Guest
Posts: n/a
 
      05-29-2006
Does anyone know if this is possible?

Thanks,

Paul

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
multiple validators on textfield w/display=dynamic don't display correctly cp ASP .Net Web Controls 3 12-24-2004 03:24 PM
Regular Expression validators NOT working, Required Field validators ARE working Ratman ASP .Net 0 09-14-2004 09:36 PM
RequiredFieldValidator ErrorMessage display James ASP .Net 4 08-17-2004 08:47 PM
Errormessage in CustomValidator Edmilson ASP .Net 0 07-10-2003 12:56 PM
ErrorMessage Kenny ASP .Net 1 07-06-2003 12:13 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57