System.Web.UI.WebControls Namespace ButtonFieldBase Class
.NET Framework version 2.0
Sets or retrieves the name of the group of validation controls to validate when a button in a ButtonFieldBase is clicked.
Inline |
<asp:buttonfieldbase validationgroup = strValue ... > |
Script |
ButtonFieldBase.ValidationGroup = strValue |
strValue |
The name of the group of validation controls to validate when a button in a ButtonFieldBase is clicked. |
The property is read/write with no default value.
Use the ValidationGroup property to specify the name of the validation group for which the ButtonFieldBase object causes validation when it posts back to the server.
Validation groups allow you to assign validation controls on a page to a specific category. Each validation group can be validated independently of other validation groups on the page.
When this property is set, only the validation controls in the specified validation group are validated.
NOTE: The CausesValidation property must be set to true for the ValidationGroup property to have an effect.
For more information, see BaseValidator.ValidationGroup.
ButtonFieldBase Members