How a validation group works when the Page is posted?

 Posted by Tripati_tutu on 11/11/2010 | Category: ASP.NET Interview questions | Views: 2323 | Points: 40

When the page postbacks, then the IsValid property of Page class is set based on the validation controls present in the validationGroup. This group determines the caused validation occurred by the control. For example, if a button control with a validation group, let's say login group is clicked, then the IsValid property will return true if all validation controls whose ValidationGroup property is set to login group are valid.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response