CompareValidator.ControlPropertiesValid Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Determines whether the properties to be validated are valid. This API is obsolete. For information about how to develop ASP.NET mobile applications, see Mobile Apps & Sites with ASP.NET.
protected:
override bool ControlPropertiesValid();
protected override bool ControlPropertiesValid ();
override this.ControlPropertiesValid : unit -> bool
Protected Overrides Function ControlPropertiesValid () As Boolean
Returns
true
if control properties to be validated are valid; otherwise, false
.
Exceptions
the ControlToValidate property is empty.
-or-
the control to compare does not exist.
-or-
the control to validate and the control to compare are the same control.
-or-
the values of the two controls are not comparable.