summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
authorxue <>2006-02-25 14:54:29 +0000
committerxue <>2006-02-25 14:54:29 +0000
commitbd93d2fecf1ce96ac9a4f6557335489a6347f509 (patch)
tree55442bdc13d246b2e53a778d290f7662402c15c4 /demos/quickstart/protected/pages/Controls/Samples
parent730d4af8510937fbbc7326f6776ae5aa06f3426d (diff)
Added TRangeValidator demo.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.page45
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.php8
2 files changed, 53 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.page
new file mode 100644
index 00000000..2e8de045
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.page
@@ -0,0 +1,45 @@
+<com:TContent ID="body">
+
+<h1>TRangeValidator Samples</h1>
+<p><strong>Note:</strong> TRangeValidator will start
+to validate only if both inputs are not empty.</p>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+Range validator with default settings:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox1" Text="a1" />
+<com:TRangeValidator
+ ControlToValidate="TextBox1"
+ ValidationGroup="Group1"
+ MinValue="aaa"
+ MaxValue="zzz"
+ Text="Input must be between 'aaa' and 'zzz'." />
+<com:TButton Text="Submit" ValidationGroup="Group1" />
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Range validator with client-side validation disabled:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox2" Text="11"/>
+<com:TRangeValidator
+ ValidationGroup="Group2"
+ EnableClientScript="false"
+ ControlToValidate="TextBox2"
+ DataType="Integer"
+ MinValue="100"
+ MaxValue="999"
+ Text="Input must be between 100 and 999." />
+<com:TButton Text="Submit" ValidationGroup="Group2" />
+</td>
+</tr>
+
+</table>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.php
new file mode 100644
index 00000000..88d2dbf2
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TRangeValidator/Home.php
@@ -0,0 +1,8 @@
+<?php
+
+class Home extends TPage
+{
+
+}
+
+?> \ No newline at end of file