Validation Controls block form submit

  • Thread starter Thread starter Chris Tillotson
  • Start date Start date
C

Chris Tillotson

Thanks in advance...

I have an odd problem. I developed a .net app on my home
computer and it works fine but when I put it on the
hosted environment my ImageButtons that are supposed to
post my forms don't work. I found that if I remove all
the Validation controls the post works fine off the
button clicks. So the Validation Controls seem to be
preventing form submit to occur. Any ideas?

Chris
 
Chris Tillotson said:
Thanks in advance...

I have an odd problem. I developed a .net app on my home
computer and it works fine but when I put it on the
hosted environment my ImageButtons that are supposed to
post my forms don't work. I found that if I remove all
the Validation controls the post works fine off the
button clicks. So the Validation Controls seem to be
preventing form submit to occur. Any ideas?

Chris

Validator controls SHOULD block a submit, IF the validation they
should do fails. For instance, a RequiredFieldValidator should block
a submit if the field it validates is not filled in.

When you want a submit even if the page is invalid, you should set
"CausesValidation" of the button to false.

Hans Kesting
 
Back
Top