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/TRegularExpressionValidator/Home.page | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) (limited to 'demos/quickstart/protected/pages/Controls/Samples/TRegularExpressionValidator') 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." /> -- cgit v1.2.3
- + + RegularExpression="\d{3}-\d{2}-\d{4}" + Text="SSN must be in the format of xxx-xx-xxxx." />