Why are my validators refusing to work?

  • Thread starter Thread starter Tarun Mistry
  • Start date Start date
T

Tarun Mistry

Hi guys, this is really driving me crazy, any help appreciated.

using ASP.NET 2.0 in VS 2005 and reviewing with IE7.

I have some fields with validators attached to them. If I drag a summary
field onto my page everything works. If I then set each indiviual validator
visibility to false (so only the summary shows), all the validators stop
working.

What am I doing wrong here? They are all enabled but not visible.

Secondly, it seems that my required field validators are doing nothing, im
totally confused. Please help all.

Thank you!
Tarun
 
Based on my experience, visibility must be set to true on the validator
for it to work. If you
don't want TEXT to be displayed, then leave that property blank. The
ERROR MESSAGE property displays in the validation summary.
 
the Visible property controls whether a control is rendered. if you set
to false, there is no control to do the validation. you want to set the
Display instead.

-- bruce (sqlwork.com)
 
Back
Top