Validator Controls

C

CsaaGuy

Hi, I have a aspx, vb.net form which i want to use validation controls,
but any control that i use automatically disables all my button events
and i can't seem to fix that.

Thanks for any help.
 
C

Craig Deelsnyder

Hi, I have a aspx, vb.net form which i want to use validation controls,
but any control that i use automatically disables all my button events
and i can't seem to fix that.

Thanks for any help.

I'm not sure what you mean or the end-result you're seeing, but there's a
few properties you'll want to keep an eye on when dealing with
validators. Basic info, but not sure where you're at in this problem...

Each validator control has an EnableClientScript method, to enable the
check to happen via JS in IE (and if invalid, stopping form submission).
If set to false, then you need to check on server-side. There's also an
Enabled property which is self-explanatory....

Also, you should always check Page.IsValid in button events, etc. in the
server code before processing, because the JS checks do not happen in
non-IE browsers.

Buttons have CausesValidation property which you can set appropriately to
enable/disable a certain button's click from causing the validators to run.

So hopefully something in there will help...
 
C

CsaaGuy

Thanks for the response. I did turn off client side checking and the
buttons started working. Thanks and moving foward becasue of you!
 

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

Forum statistics

Threads
473,774
Messages
2,569,598
Members
45,161
Latest member
GertrudeMa
Top