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

  • Thread starter Thread starter mortb
  • Start date Start date
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
 
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" ??
 
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
 
Back
Top