summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples
diff options
context:
space:
mode:
authorxue <>2006-01-24 00:40:46 +0000
committerxue <>2006-01-24 00:40:46 +0000
commit8315c49b766ae0ae4c6729f641f6c83c50636b6c (patch)
tree39c700e7d6097ca6b70147952038f470ee799167 /demos/quickstart/protected/pages/Controls/Samples
parent4282256a7bf5580cd0fa22ce9686024352f23a6f (diff)
Fixed a few issues with TCheckBox about validator.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page42
1 files changed, 40 insertions, 2 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page
index 9e25fc8e..5b59e22b 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCheckBox/Home.page
@@ -31,7 +31,6 @@ An auto postback checkbox:
</td><td class="sampleaction">
<com:TCheckBox
AutoPostBack="true"
- ValidationGroup="t"
Text="click me"
OnCheckedChanged="checkboxClicked"
/>
@@ -47,7 +46,46 @@ A checkbox causing validation on a textbox:
ErrorMessage="input required in the textbox"
ValidationGroup="Group"
/>
-<com:TCheckBox Text="submit" ValidationGroup="Group" />
+<com:TCheckBox
+ Text="submit"
+ AutoPostBack="true"
+ ValidationGroup="Group"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A checkbox validated by a required field validator:
+</td><td class="sampleaction">
+<com:TCheckBox
+ ID="CheckBox"
+ Text="Consent"
+ ValidationGroup="Group2"
+ />
+<com:TButton Text="Submit" ValidationGroup="Group2" />
+<com:TRequiredFieldValidator
+ ControlToValidate="CheckBox"
+ Display="Dynamic"
+ ErrorMessage="You must consent."
+ ValidationGroup="Group2"
+ />
+</td></tr>
+
+<tr><td class="samplenote">
+A checkbox validated by a required field validator using AutoPostBack:
+</td><td class="sampleaction">
+<com:TCheckBox
+ ID="CheckBox2"
+ Text="Agree"
+ Checked="true"
+ AutoPostBack="true"
+ ValidationGroup="Group3"
+ />
+<com:TRequiredFieldValidator
+ ControlToValidate="CheckBox2"
+ Display="Dynamic"
+ ErrorMessage="You must agree."
+ ValidationGroup="Group3"
+ />
</td></tr>
</table>