Link to home
Start Free TrialLog in
Avatar of kpbarem
kpbarem

asked on

How to skip validation when specific buttons are clicked?

I have asp.net validators on a form and only want the controls to be validated when the save button is clicked.  If other buttons on the form are clicked I don't want the form to be validated.  Is there a property that I can set that will cause validation to only happen when a particular asp.net button is clicked?
Avatar of Cluskitt
Cluskitt
Flag of Portugal image

There is a property called ValidationGroup. Set it on the validators and the button and they will only work between themselves.
ASKER CERTIFIED SOLUTION
Avatar of Paul Jackson
Paul Jackson
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of kpbarem
kpbarem

ASKER

Thank you!!