BaseValidator.ControlPropertiesValid Method
Helper function that determines whether the control specified by the ControlToValidate property is a valid control.
[Visual Basic] Protected Overridable Function ControlPropertiesValid() As Boolean [C#] protected virtual bool ControlPropertiesValid(); [C++] protected: virtual bool ControlPropertiesValid(); [JScript] protected function ControlPropertiesValid() : Boolean;
Return Value
true if the control specified by the ControlToValidate property is a valid control; otherwise, false.
Exceptions
| Exception Type | Condition |
|---|---|
| HttpException | No value is specified for the ControlToValidate property.
-or- The input control specified by the ControlToValidate property is not found on the page. -or- The input control specified by the ControlToValidate property does not have a ValidationProperty attribute associated with it; therefore, it cannot be validated with a validation control. |
Remarks
The ControlPropertiesValid method is a helper function primarily used by the PropertiesValid property to determine whether the ControlToValidate property contains a valid input control. To be a valid input control, the ControlToValidate property must be set to some value and that value must be a control on the page.
Note This method is primarily used by control developers.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
BaseValidator Class | BaseValidator Members | System.Web.UI.WebControls Namespace