Export (0) Print
Expand All

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 www.asp.net/mobile Web site.

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

[BindableAttribute(false)]
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

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft