Redigera

Dela via


CompareValidator.ControlPropertiesValid Method

Definition

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.

Applies to

See also