Why are my validators refusing to work?

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
 
B

bpd

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.
 
B

bruce barker

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)
 

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,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top