From f4de82bcdafba51e4eed9cae6b2d3e5375ffd115 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 9 May 2006 12:11:38 +0000 Subject: --- .../quickstart/protected/pages/Controls/Validation.page | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls/Validation.page') diff --git a/demos/quickstart/protected/pages/Controls/Validation.page b/demos/quickstart/protected/pages/Controls/Validation.page index 6d83af3d..a28c8faf 100644 --- a/demos/quickstart/protected/pages/Controls/Validation.page +++ b/demos/quickstart/protected/pages/Controls/Validation.page @@ -1,6 +1,6 @@ -

Validation Controls

+

Validation Controls

Validation controls, called validators, perform validation on user-entered data values when they are post back to the server. The validation is triggered by a postback control, such as a TButton, a TLinkButton or a TTextBox (under AutoPostBack mode) whose CausesValidation property is true. @@ -32,14 +32,14 @@ Validators share a common set of properties, which are defined in the base class -

TRequiredFieldValidator

+

TRequiredFieldValidator

TRequiredFieldValidator ensures that the user enters some data in the specified input field. By default, TRequiredFieldValidator will check if the user input is empty or not. The validation fails if the input is empty. By setting InitialValue, the validator can check if the user input is different from InitialValue. If not, the validation fails.

-

TRegularExpressionValidator

+

TRegularExpressionValidator

TRegularExpressionValidator verifies the user input against a regular pattern. The validation fails if the input does not match the pattern. The regular expression can be specified by the RegularExpression property. Some commonly used regular expressions include:

@@ -73,7 +73,7 @@ Note, if the input being validated is empty, TEmailAddressValidator will not do -

TCompareValidator

+

TCompareValidator

TCompareValidator compares the user input with a constant value specified by ValueToCompare, or another user input specified by ControlToCompare. The Operator property specifies how to compare the values, which includes Equal, NotEqual, GreaterThan, GreaterThanEqual, LessThan and LessThanEqual. Before comparison, the values being compared will be converted to the type specified by DataType listed as follows,

@@ -92,7 +92,7 @@ Note, if the input being validated is empty, TEmailAddressValidator will not do -

TDataTypeValidator

+

TDataTypeValidator

TDataTypeValidator verifies if the input data is of specific type indicated by DataType. The data types that can be checked against are the same as those in TCompareValidator.

@@ -104,7 +104,7 @@ TDataTypeValidator verifies if the input data is of specific type indicated by < -

TRangeValidator

+

TRangeValidator

TRangeValidator verifies whether an input value is within a specified range. TRangeValidator uses three key properties to perform its validation. The MinValue and MaxValue properties specify the minimum and maximum values of the valid range. The DataType property specifies the data type of the value being validated. The value will be first converted into the specified type and then compare with the valid range. The data types that can be checked against are the same as those in TCompareValidator.

@@ -115,7 +115,7 @@ TRangeValidator verifies whether an input value is within a specified range. TRa -

TCustomValidator

+

TCustomValidator

TCustomValidator performs user-defined validation (either server-side or client-side or both) on an input control.

@@ -139,7 +139,7 @@ function ValidationFunctionName(sender, parameter) -

TValidationSummary

+

TValidationSummary

TValidationSummary displays a summary of validation errors inline on a Web page, in a message box, or both.

-- cgit v1.2.3