Problem with RequiredFiledValidator

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a TextBox with RequiredfieldValidator and two buttons; ButtonSubmit
and ButtonCancel.

When someone click on the ButtonCancel how do i stop the
RequiredFieldValidator? I only want to RequiredFieldValidator to work when
the ButtonSubmit is clicked.

any suggestion? many thanks in advance.
 
Have you tried changing the "CausesValidation" property on the Cancel
Button?
 

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