asp.net.ph

ButtonFieldBase.ValidationGroup Property

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.

Syntax


Inline <asp:buttonfieldbase validationgroup = strValue ... >
Script ButtonFieldBase.ValidationGroup = strValue

Property Value


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.

Exceptions


Exception Type Condition
ArgumentException The given column type is not one of the ValidationGroup values.

Remarks

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.

See Also

ButtonFieldBase Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph