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
 

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

Back
Top