ErrorMessage display with validators

P

paul.hester

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
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,994
Messages
2,570,222
Members
46,809
Latest member
moe77

Latest Threads

Top