Validators render   when not displayed -- is ther some way to turn this off?

M

mortb

A validator that is not displayed will render a   tag in the output
page.
This cuases me problems as I don't wnat anything to show in this case.
Is there any way to get rid of the   ?

cheers,
mortb
 
H

Hans Kesting

mortb said:
A validator that is not displayed will render a   tag in the output
page.
This cuases me problems as I don't wnat anything to show in this case.
Is there any way to get rid of the   ?

cheers,
mortb

Display = Dynamic instead of the default "Static" ??
 
P

Peter Blum

The Validator control itself generates the following tag:
<span id="[clientID of the validator]" style="[handles visibility]">Error
message goes here</span>

Unless your ErrorMessage has an &nbsp; in it, the Validator is not
generating the &nbsp;.
For example, if you have a <asp:TextBox [properties] /> <asp:validator
[properties] />, the space between the two is an &nbsp; that you hand
entered.

--- Peter Blum
www.PeterBlum.com
Email: (e-mail address removed)
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx
 

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

Forum statistics

Threads
473,731
Messages
2,569,432
Members
44,835
Latest member
KetoRushACVBuy

Latest Threads

Top