Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Apr 27, 2012 06:02 PM by grundebar
Apr 27, 2012 02:58 PM|LINK
I have a page with about a dozen or so required field validators on and a button that is set to causesvalidation=true. My issue is that i only want this particular button to validate only 3 or 4 of these validators.
Is this possible, and how can i go about it?
Apr 27, 2012 06:02 PM|LINK
If I understand correctly, you want to tie the button to only 3 or 4 of your validators while the remaining validators will be triggered elsewhere. You can easily accomplish this through the ValidationGroup attribute. Simply add this attribute to all of
the validators you want to tie together AND to the button that will cause the validation.
<Validator1 ValidationGroup="group1" />
<Validator2 ValidationGroup="group1" />
<Button ValidationGroup="group1" />