diff options
author | xue <> | 2006-02-23 03:38:15 +0000 |
---|---|---|
committer | xue <> | 2006-02-23 03:38:15 +0000 |
commit | 8569373e8cb6163f182fe13ffbc44ea1b2c961cd (patch) | |
tree | ec3dabb93f753e23880e425c8cbdb9920e4b063f /demos/quickstart/protected/pages/Controls/Samples/TCompareValidator | |
parent | 697285390a0495dc839d43806bb5b3dddf2f3af7 (diff) |
more clean up work about validators.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TCompareValidator')
-rw-r--r-- | demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page | 34 |
1 files changed, 33 insertions, 1 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page index ab99436a..c5cec8af 100644 --- a/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page +++ b/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page @@ -1,7 +1,7 @@ <com:TContent ID="body">
<h1>TCompareValidator Samples</h1>
-<p><strong>Note:</strong>TCompareValidator will start
+<p><strong>Note:</strong> TCompareValidator will start
to validate only if both inputs are not empty.</p>
<table class="sampletable">
@@ -39,6 +39,38 @@ Compare validator with client-side validation disabled: </td>
</tr>
+<tr>
+<td class="samplenote">
+Comparing with a constant value:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox3" Text="a" />
+<com:TCompareValidator
+ ValidationGroup="Group3"
+ ControlToValidate="TextBox3"
+ ValueToCompare="test"
+ Text="You must enter 'test'." />
+<com:TButton Text="Submit" ValidationGroup="Group3" />
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Comparing with an integer:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox4" Text="0" />
+<com:TCompareValidator
+ ValidationGroup="Group4"
+ ControlToValidate="TextBox4"
+ ValueToCompare="100"
+ DataType="Integer"
+ Operator="GreaterThan"
+ Text="You must enter an integer greater than 100." />
+<com:TButton Text="Submit" ValidationGroup="Group4" />
+</td>
+</tr>
+
</table>
</com:TContent>
\ No newline at end of file |