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

ASP.NET ImageButton ValidationGroup Property

ASP.NET ImageButton ValidationGroup Property


ImageButton Control ImageButton control


Definition and Usage

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

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

Syntax

/>

 

property Description
group The validation group to be validated.

Example

The following example validates a specific validation group:

validationgroup="valGroup1" errormessage="Required" runat=Server />

validationgroup="valGroup2" ImageUrl="img.gif" runat=Server />

Demo Example »


ImageButton Control ImageButton control