Validator Text vs. ErrorMessage

A

Andy

Hi,

I'm trying to get the "no text" text display going with validators. I
know that normally if Text is empty, it will use errormessage
instead. I thought I found a way to trick the controls though, but
setting Text to &nbsp. This actually seems to work... on one of my
pages. On another page though, the ErrorMessage is still being
displayed. If it were consistent, that'd be one thing... but what is
going on here? If the validator smart enough to figure out that
  is empty??

Thanks
Andy
 
A

Andy

I'm trying to get the "no text" text display going with validators.  I
know that normally if Text is empty, it will use errormessage
instead.  I thought I found a way to trick the controls though, but
setting Text to &nbsp.  This actually seems to work... on one of my
pages.  On another page though, the ErrorMessage is still being
displayed.  If it were consistent, that'd be one thing... but what is
going on here?  If the validator smart enough to figure out that
  is empty??

I managed to get it working how I want, but I'd still like to know why
it wasn't working with the  . I simply made a css class where
display was none and applied that to all the validators.
 

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,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top