
CustomValidator | 837
WebControls
Namespace
This is the Title of the Book, eMatter Edition
Copyright © 2008 O’Reilly & Associates, Inc. All rights reserved.
CommandEventHandler
System.Web.UI.WebControls (system.web.dll)
serializable
delegate
Many button controls, such as Button, ImageButton, and LinkButton, provide both a Click and a
Command event. The Command event allows you to send extra information identifying a
command name and command arguments in an instance of CommandEventArgs.
Associated Events
System.Web.UI.MobileControls.Command.ItemCommand( ), Button.Command( ), Image-
Button.Command( ), LinkButton.Command( )
CompareValidator
System.Web.UI.WebControls (system.web.dll)
disposable
class
This class represents a validation control that compares the input control (ControlToVali-
date) to a specified value (ValueToCompare) or a value in another control (ControlToCompare).
Both values will be converted to the data type specified by Type before they are
compared. Note that if you set both ValueToCompare and ControlToCompare, the latter will
take precedence.
The Operator property specifies the expression that must be met in order for validation
to succeed. In other words, ControlToValidate <Operator> ControlToCompare must be true.
Hierarchy
System.Object ➝ System.Web.UI.Control(System.ComponentModel.IComponent, System.
IDisposable, System.Web.UI.IParserAccessor, System.Web.UI.IDataBindingsAccessor)