Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

ASP.NET Button ValidationGroup Property

ASP.NET Button ValidationGroup Property


Button Control Button Control


Definition and Usage

The ValidationGroup property specifies the group of controls to be validated when the Button control posts back to the server.

This property is typically used when a form contains multiple buttons.

Syntax

/>

property Description
ValidationGroup The group of controls to be validated.

Example

Example

The following example validates a specific validation group:

validationgroup="valGroup1" ErrorMessage="Required" runat="server" />

validationgroup="valGroup2" runat="server" />

Demo Example »


Button Control Button Control