Hi, On a webform, I have a few textboxes, to which I have associated required field validators. I have a add buttton on the form which clears the textboxes to allow users to enter data. I also have cancel button on the form, which might be clicked by the user
after he has clicked the add button and then decides to cancel out. In such an event since there is requiredfieldvalidation, the error messages associated with the requiredfieldvalidator keep popping up not allowing the user to cancel out. Is there a way to
overrule/bypass requiredfieldvalidators ? Thanks
I know that the property Enabled may be used for this,but it does not seem to work for me. Initially I have set the required field validator to be Enabled(true), then on the Cancel button click I want to set the Enabled property of the said validator to false,
but it does not seem to work. Can someone please point out the right way of setting enabled to false also do any other porperties of the required field validator have to be set to get the above to work correctly ? a code sample would be great. Thanks.
anitac
Member
415 Points
83 Posts
Overruling validation
Aug 01, 2003 09:02 PM|LINK
Kelsey
Contributor
4222 Points
797 Posts
Re: Overruling validation
Aug 01, 2003 11:03 PM|LINK
anitac
Member
415 Points
83 Posts
Re: Overruling validation
Aug 01, 2003 11:20 PM|LINK
grennis
Member
80 Points
16 Posts
Re: Overruling validation
Aug 02, 2003 04:42 AM|LINK
anitac
Member
415 Points
83 Posts
Re: Overruling validation
Aug 04, 2003 04:25 PM|LINK