CompareValidator.ControlToCompare Property


Gets or sets the ID of the input control to compare. The default value is an empty string (""). This API is obsolete. For information about how to develop ASP.NET mobile applications, see the Web site.

Namespace:   System.Web.UI.MobileControls
Assembly:  System.Web.Mobile (in System.Web.Mobile.dll)

public string ControlToCompare { get; set; }

Property Value

Type: System.String

The ID of the input control to compare.

Specifies the ID of the control to which a value comparison will be made. You can use the ValueToCompare property as an alternative. If both are specified, the value of the ControlToCompare property takes precedence.

.NET Framework
Available since 1.1
Return to top