ASP.NET Button ValidationGroup Property
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
/> The following example validates a specific validation group: validationgroup="valGroup1" ErrorMessage="Required" runat="server" /> validationgroup="valGroup2" runat="server" /> Demo Example »
property
Description
ValidationGroup
The group of controls to be validated.
Example
Example
Button Control