System.Web.UI.WebControls.BaseValidator.CheckControlValidationProperty Method

Verifies whether the specified control is on the page and contains validation properties.

Syntax

protected void CheckControlValidationProperty (string name, string propertyName)

Parameters

name
The control to verify.
propertyName
Additional text to describe the source of the exception, if an exception is thrown from using this method.

Remarks

The BaseValidator.CheckControlValidationProperty(string, string) method is a helper method used primarily by the BaseValidator.ControlPropertiesValid method to verify whether the specified control is on the page and contains validation properties. This method does not return a value to report the result. Instead, it throws an exception when verification fails.

Note:

This method is used primarily by control developers.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0