From d7c8a56d49200cb46d94403934674d670035ff20 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 22 Feb 2006 05:09:29 +0000 Subject: cleanup of validators. --- .../Controls/Samples/LabeledTextBox1/Home.php | 2 +- .../protected/pages/Controls/Validation.page | 33 ++++++++++++++++++++-- 2 files changed, 32 insertions(+), 3 deletions(-) (limited to 'demos/quickstart/protected') diff --git a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/Home.php b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/Home.php index 2b18972d..2309bd88 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/Home.php +++ b/demos/quickstart/protected/pages/Controls/Samples/LabeledTextBox1/Home.php @@ -1,6 +1,6 @@ TRangeValidator

+TRangeValidator tests 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 ValueType 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 following value types are supported: +

+ -

TValueTypeValidator

+

TDataTypeValidator

- +

TCustomValidator

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

+

+To create a server-side validation function, provide a handler for the OnServerValidate event that performs the validation. The data string of the input control to validate can be accessed by the event parameter's Value property. The result of the validation should be stored in the IsValid property of the parameter. +

+

+To create a client-side validation function, add the client-side validation javascript function to the page template and assign its name to the ClientValidationFunction property. The function should have the following signature:

+ + + -- cgit v1.2.3