Validation Controls

  • Thread starter Thread starter Janaka
  • Start date Start date
J

Janaka

I've got a couple of validation controls on a page that work fine. The
problem is that I've got 2 buttons on the page, one to update a value and
another to submit the page. I only want the controls to be validated if i
click on the submit button. However, doing any postback to the server
makes the validation controls generate errors. Is there anyway around this
without having to make another page?
 
Set CausesValidation property to false for the button which you don't want to trigger validation when it's clicked.

----- Janaka wrote: ----

I've got a couple of validation controls on a page that work fine. Th
problem is that I've got 2 buttons on the page, one to update a value an
another to submit the page. I only want the controls to be validated if
click on the submit button. However, doing any postback to the serve
makes the validation controls generate errors. Is there anyway around thi
without having to make another page
 
Back
Top