Let\'s say the page TestPage.aspx has two controls. The first control is an address control that has a validation group called \"AddressGroup\". This group contains severa
Call the Validate method for each validation group individually inside the button's click handler:
bool isValidTest = false;
Validate("AddressGroup");
isValidTest = IsValid;
Validate("CreditCardGroup");
isValidTest &= IsValid;
// etc.
if (!isValidTest) return;
The next problem you may encounter is that the ValidationSummary control is linked to a single validation group. The only way that I've found to display all the error messages for multiple groups (without walking the control tree) is use multiple ValidationSummary controls.
With user controls, you may want to have its Validate method perform validation for all the controls it contains and display its own summary.
Edited to add: The isValidTest variable is not needed. According to the docs:
Note that when you call the Validate method, the IsValid property reflects the validity of all groups validated so far.