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

ASP.NET ValidationGroup Property

ASP.NET ValidationGroup Property


ListControl Control Reference Manual ListControl control reference manual


Definition and Usage

The ValidationGroup property specifies the group of controls to be validated during validation.

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

Syntax

SomeListControl

ValidationGroup="

group

" runat="server"

/>

property Description
group The group of controls to be validated.

Example

The following example validates the specified control group:

ValidationGroup="valGroup1" runat="server">

  

  

ControlToValidate="rb1" ErrorMessage="Required"

ValidationGroup="ValGroup1" runat="server" />

CausesValidation="True" ValidationGroup="ValGroup1"

runat="server" />

Demo Example »


ListControl Control Reference Manual ListControl control reference manual