summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls
diff options
context:
space:
mode:
authorxue <>2006-01-16 22:22:39 +0000
committerxue <>2006-01-16 22:22:39 +0000
commit473e29dfcec480bd146bc31e42f0f9438b7210f9 (patch)
tree033dfe5c923446ae1178b9af596b274cf067bc13 /demos/quickstart/protected/pages/Controls
parent318ca1a7cc0085f36a6ca6648b6b2a7eb2bab295 (diff)
Added validation examples.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.page42
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.php8
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page25
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.php8
-rw-r--r--demos/quickstart/protected/pages/Controls/Validation.page5
5 files changed, 88 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
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.php
new file mode 100644
index 00000000..88d2dbf2
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCompareValidator/Home.php
@@ -0,0 +1,8 @@
+<?php
+
+class Home extends TPage
+{
+
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page
new file mode 100644
index 00000000..75ca9c52
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.page
@@ -0,0 +1,25 @@
+<com:TContent ID="body">
+
+<h1>TValidationSummary Samples</h1>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+Required field validator with default settings:
+</td>
+<td class="sampleaction">
+<com:TValidationSummary ValidationGroup="Group1" />
+<com:TTextBox ID="TextBox1" />
+<com:TRequiredFieldValidator
+ ValidationGroup="Group1"
+ ControlToValidate="TextBox1"
+ Text="Field required." />
+<com:TButton Text="Submit" ValidationGroup="Group1" />
+</td>
+</tr>
+
+
+</table>
+
+</com:TContent> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.php b/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.php
new file mode 100644
index 00000000..88d2dbf2
--- /dev/null
+++ b/demos/quickstart/protected/pages/Controls/Samples/TValidationSummary/Home.php
@@ -0,0 +1,8 @@
+<?php
+
+class Home extends TPage
+{
+
+}
+
+?> \ No newline at end of file
diff --git a/demos/quickstart/protected/pages/Controls/Validation.page b/demos/quickstart/protected/pages/Controls/Validation.page
index b0bf46e1..f37df4d6 100644
--- a/demos/quickstart/protected/pages/Controls/Validation.page
+++ b/demos/quickstart/protected/pages/Controls/Validation.page
@@ -32,4 +32,9 @@
</p>
<com:RunBar PagePath="Controls.Samples.TCustomValidator.Home" />
+<h2>TValidationSummary</h2>
+<p>
+</p>
+<com:RunBar PagePath="Controls.Samples.TValidationSummary.Home" />
+
</com:TContent> \ No newline at end of file