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

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top