Latest web development tutorials

ASP.NET LinkButton ValidationGroup property

LinkButton control LinkButton control

Definition and Usage

ValidationGroup attribute specifies the verification process to be verified control group.

This attribute is used in most cases where there are multiple buttons in the form below.


<asp:LinkButton ValidationGroup="group" runat="server" />
属性 描述
group 要验证的控件组。


The following examples demonstrate the specific validation group:

<asp:TextBox id="tb1" runat=Server />
<asp:RequiredFieldValidator id="ReqField1" ControlToValidate="tb1"
ValidationGroup="valGroup1" ErrorMessage="Required" runat="server" />

<asp:LinkButton id="Button2" Text="Validate" CausesValidation="True"
ValidationGroup="valGroup2" runat="server" />

The demonstration >>

LinkButton control LinkButton control