DynamicControl.ValidationGroup DynamicControl.ValidationGroup DynamicControl.ValidationGroup DynamicControl.ValidationGroup Property

定義

取得或設定控制項的驗證群組名稱。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; }
member this.ValidationGroup : string with get, set
Public Overridable Property ValidationGroup As 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. 使用屬性, 即可指定當頁面回傳至伺服器時, DynamicControl控制項會造成驗證的驗證組名。 ValidationGroupUse 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.

適用於