System.Web.UI.WebControls Namespace
Serves as the abstract base class for validator controls.
Visibility |
Name |
Value Type |
Accessibility |
public |
AssociatedControlID
|
String |
[ Get , Set ] |
public |
ControlToValidate
|
String |
[ Get , Set ] |
public |
Display
|
ValidatorDisplay |
[ Get , Set ] |
public |
EnableClientScript
|
Boolean |
[ Get , Set ] |
public |
Enabled
|
Boolean |
[ Get , Set ] |
public |
ErrorMessage
|
String |
[ Get , Set ] |
public |
ForeColor
|
Color |
[ Get , Set ] |
public |
IsValid
|
Boolean |
[ Get , Set ] |
public |
SetFocusOnError
|
Boolean |
[ Get , Set ] |
public |
Text
|
String |
[ Get , Set ] |
public |
ValidationGroup
|
String |
[ Get , Set ] |
|
The BaseValidator class provides the core implementation for all validation controls.
Validation controls always perform validation checking on the server. Validation controls also have complete client-side implementation that allows uplevel browsers ( supports DHTML ), to perform validation on the client. Client-side validation enhances the validation scheme by checking user input as the user enters data. This allows errors to be detected on the client before the form is submitted, preventing the round-trip necessary for server-side validation.
More than one validator may be used on a page to validate different aspects.
CompareValidator CustomValidator RangeValidator RegularExpressionValidator RequiredFieldValidator ValidationSummary