From fceb3741d3b0c1e00e81a4a24caf7d49a86896b4 Mon Sep 17 00:00:00 2001 From: xue <> Date: Wed, 22 Feb 2006 02:46:25 +0000 Subject: Updated some validators and relevant demos. --- .../Samples/TEmailAddressValidator/Home.page | 3 +- .../Samples/TRegularExpressionValidator/Home.page | 21 +++--- .../Samples/TRequiredFieldValidator/Home.page | 74 +++++++++++++++++++++- 3 files changed, 85 insertions(+), 13 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls/Samples') diff --git a/demos/quickstart/protected/pages/Controls/Samples/TEmailAddressValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TEmailAddressValidator/Home.page index db63a0a9..79066e44 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TEmailAddressValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TEmailAddressValidator/Home.page @@ -1,7 +1,7 @@

TEmailAddressValidator Samples

-

Note:TEmailAddressValidator will start +

Note: TEmailAddressValidator will start to validate only if the input is not empty.

@@ -44,6 +44,7 @@ Email address validator with focus-on-error enabled and dynamic display: diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRegularExpressionValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRegularExpressionValidator/Home.page index 5ce43fda..9c27057b 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TRegularExpressionValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TRegularExpressionValidator/Home.page @@ -1,8 +1,11 @@

TRegularExpressionValidator Samples

-

Note:TRegularExpressionValidator will start -to validate only if the input is not empty.

+

+Note: TRegularExpressionValidator will start +to validate only if the input is not empty. +

+
@@ -10,12 +13,12 @@ to validate only if the input is not empty.

Regular expression validator with default settings: @@ -30,8 +33,8 @@ Regular expression validator with client-side validation disabled: ValidationGroup="Group2" EnableClientScript="false" ControlToValidate="TextBox2" - RegularExpression="\d+" - Text="Only digits are allowed." /> + RegularExpression="[\w]{6,}" + Text="Input must consist of at least 6 characters." /> @@ -46,8 +49,8 @@ Regular expression validator with focus-on-error enabled and dynamic display: ValidationGroup="Group3" ControlToValidate="TextBox3" Display="Dynamic" - RegularExpression="\d+" - Text="Only digits are allowed." /> + RegularExpression="\d{5}(-\d{4})?" + Text="Invalid US ZIP code." /> diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRequiredFieldValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRequiredFieldValidator/Home.page index 36d02ced..e5c27cd0 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TRequiredFieldValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TRequiredFieldValidator/Home.page @@ -6,7 +6,7 @@ + + + + + + + + + + + + + + + + + + +
- + + RegularExpression="\d{3}-\d{2}-\d{4}" + Text="SSN must be in the format of xxx-xx-xxxx." />
-Required field validator with default settings: +Validator with default settings: @@ -20,7 +20,7 @@ Required field validator with default settings:
-Required field validator with client-side validation disabled: +Validator with client-side validation disabled: @@ -35,12 +35,13 @@ Required field validator with client-side validation disabled:
-Required field validator with focus-on-error enabled and dynamic display: +Validator with focus-on-error enabled and dynamic display: @@ -48,6 +49,73 @@ Required field validator with focus-on-error enabled and dynamic display:
+Validating if initial value (test) is changed: + + + + +
+Validating if checkbox is checked: + + + + +
+Validating if a selection has been made in a dropdown list: + + + + + + + + +
+Validating if a selection has been made in a dropdown list: + + + + + + + + +
-- cgit v1.2.3