P
Pete Hearn
Hi All
Just got my first ASP.net form running - a proud moment! The form has about
20 fields, and a few need to have values supplied. No problem - shoved in a
few RequiredFieldValidators and all was well.
After reviewing what I'd done, I decided to change the submit button from
being a link button to a regular button.
No problem thinks I - just hook up the previous button's event handler to
the new button and away we go. Except we didn't go anywhere. The
validators still appeared to work, but once all validations were satisfied,
the form was still not submitted.
Stripped off all the validators and the form is submitted fine (albeit that
no validation is performed). Add back a single validator and I'm stuck
again - i.e. it correctly spots and empty field, but even if you fill that
field the form is never submitted. Delete the validator so the form has
none and the form is submitted just fine.
I'm so disappointed , but hoping that this might be a well known newbie
error.
Any thoughts anyone?
TIA,
Peter
Just got my first ASP.net form running - a proud moment! The form has about
20 fields, and a few need to have values supplied. No problem - shoved in a
few RequiredFieldValidators and all was well.
After reviewing what I'd done, I decided to change the submit button from
being a link button to a regular button.
No problem thinks I - just hook up the previous button's event handler to
the new button and away we go. Except we didn't go anywhere. The
validators still appeared to work, but once all validations were satisfied,
the form was still not submitted.
Stripped off all the validators and the form is submitted fine (albeit that
no validation is performed). Add back a single validator and I'm stuck
again - i.e. it correctly spots and empty field, but even if you fill that
field the form is never submitted. Delete the validator so the form has
none and the form is submitted just fine.
I'm so disappointed , but hoping that this might be a well known newbie
error.
Any thoughts anyone?
TIA,
Peter