By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,212 Members | 2,209 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,212 IT Pros & Developers. It's quick & easy.

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

P: n/a
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
Nov 18 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a

"mortb" <mo****@hotmail.com> wrote in message news:%2****************@TK2MSFTNGP12.phx.gbl...
A validator that is not displayed will render a &nbsp; 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 &nbsp; ?

cheers,
mortb


Display = Dynamic instead of the default "Static" ??
Nov 18 '05 #2

P: n/a
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: PL****@PeterBlum.com
Creator of "Professional Validation And More" at
http://www.peterblum.com/vam/home.aspx

"mortb" <mo****@hotmail.com> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
A validator that is not displayed will render a &nbsp; 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 &nbsp; ?

cheers,
mortb

Nov 18 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.