Home / ASP.NET Wiki / HTML / Web Controls / Validation Controls / CustomValidator

CustomValidator

 Rate It (0)

The CompareValidator control compares the value of one control to another, or to an explicit value in the control's ValueToCompare property. CompareValidator uses three key properties to perform its validation. ControlToValidate and ControlToCompare contain the values to compare. Operator defines the type of comparison to perform, for example, Equal or Not Equal. CompareValidator performs the validation by evaluating these properties as an expression, as shown in the following example.

Whitepapers/Blogs

Revision number 3, Wednesday, February 20, 2008 5:04:06 AM by haidar_bilal

Comments

Related Articles

CompareValidator

The CompareValidator control compares the value of one control to another, or to an explicit value in the control's ValueToCompare property. CompareValidator uses three key properties to perform its validation. ControlToValidate and ControlToCompare contain

customvalidator

The customvalidator control allows writing custom validation for a control. So, if the others validators: RangeValidator, RequiredFieldValidator, RegularExpressionValidator, CompareValidator, is not useful for a specific validation, it is possible to write

Web Controls

Web controls are ASP.NET controls which are understood and compiled on the server and render as HTML markup on the page. Most of the web server controls render their own HTML controls (or many HTML controls). The markup that is output froma web control can

Shortcuts

Table of Contents

Top Wiki Contributors

(last 30 days)

  1. abiruban (1)