DynamicControl.ValidationGroup 属性

定义

获取或设置控件的验证组名称。Gets or sets the validation group name for the control.

public:
 virtual property System::String ^ ValidationGroup { System::String ^ get(); void set(System::String ^ value); };
[System.Web.UI.Themeable(false)]
public virtual string ValidationGroup { get; set; }
[<System.Web.UI.Themeable(false)>]
member this.ValidationGroup : string with get, set
Public Overridable Property ValidationGroup As String

属性值

String

控件的验证组名称。The validation group name for the control.

属性

注解

使用验证组可以将页上的验证控件分配给特定类别。Validation groups allow you to assign validation controls on a page to a specific category. 每个验证组可以独立于页面上的其他验证组进行验证。Each validation group can be validated independently from other validation groups on the page. 使用 ValidationGroup 属性指定 DynamicControl 当页面回发到服务器时,控件引发验证的验证组的名称。Use the ValidationGroup property to specify the name of the validation group for which the DynamicControl control causes validation when the page posts back to the server.

适用于