CustomValidator firing twice and not displaying error message

T

Talisker

I have a custom validator that checks to see if a checkbox is checked,
if it is then another field is required, so if it's blank then I want
to display an error. When I submit the form, for some reason it is
running the validator (server side) twice. It properly changes the
IsValid to False so the form doesn't get submitted, but the error
message doesn't display on the page.

Any idea why it would run twice (with nothing else running in between)
or not display the error?

Another thing to note, this is within the Edit template of a FormView
control in .net 2.0.

Any pointers would be welcome.
 

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,754
Messages
2,569,522
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top