summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page
diff options
context:
space:
mode:
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page42
1 files changed, 42 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page
new file mode 100644
index 00000000..7abed86a
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page
@@ -0,0 +1,42 @@
+<com:TContent ID="body">
+
+<h1>TCompareValidator Samples</h1>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+Compare validator with default settings:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox1" />
+<com:TTextBox ID="TextBox11" />
+<com:TCompareValidator
+ ValidationGroup="Group1"
+ ControlToValidate="TextBox1"
+ ControlToCompare="TextBox11"
+ Text="The two textboxes must have the same value." />
+<com:TButton Text="Submit" ValidationGroup="Group1" />
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Compare validator with client-side validation disabled:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox2" />
+<com:TTextBox ID="TextBox22" />
+<com:TCompareValidator
+ ValidationGroup="Group2"
+ EnableClientScript="false"
+ ControlToValidate="TextBox2"
+ ControlToCompare="TextBox22"
+ Text="The two textboxes must have the same value." />
+<com:TButton Text="Submit" ValidationGroup="Group2" />
+</td>
+</tr>
+
+</table>
+
+</com:TContent> \ No newline at end of file