Showing posts with label ValidationGroup. Show all posts
Showing posts with label ValidationGroup. Show all posts

Friday, March 30, 2012

Asp.Net - ValidationSummary using ValidationGroup

In Asp.Net the ValidationSummary control consolidates the validation detials and error messages of all the validation controls in the page and provides a summary report of all the validation failures in the page.

Suppose we have a large page and we need to group the validations in the page based on specific groups, here we need to use the ValidationGroup property, the ValidationGroup property should be set to the controls which are part of the group, the ValidationSummary control and the button which will handle the submit/postback of this group.

Here’s the code below