summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
diff options
context:
space:
mode:
authorxue <>2006-01-26 05:29:54 +0000
committerxue <>2006-01-26 05:29:54 +0000
commit422eb693da395056f7aaba594be15bcc6b103bf2 (patch)
tree529684377c94b29d1f28cb8a90275262d26015bf /demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
parent146cb7314bd0a9c05666605a2aa1fbff5c319447 (diff)
Added databinding and validation demos to TCheckBoxList and TRadioButtonList.
Diffstat (limited to 'demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page')
-rw-r--r--demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page72
1 files changed, 72 insertions, 0 deletions
diff --git a/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page b/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
index bc750cb8..00670343 100644
--- a/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
+++ b/demos/quickstart/protected/pages/Controls/Samples/TCheckBoxList/Home.page
@@ -133,4 +133,76 @@ Auto postback check box list:
</table>
+
+
+<h2>Checkbox Lists with DataBinding</h2>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+Databind to an integer-indexed array:
+</td>
+<td class="sampleaction">
+<com:TCheckBoxList ID="DBCheckBoxList1"
+ AutoPostBack="true"
+ OnSelectedIndexChanged="DBCheckBoxList1Changed" />
+<com:TLabel ID="DBCheckBoxList1Result" ForeColor="red" />
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Databind to an associative array:
+</td>
+<td class="sampleaction">
+<com:TCheckBoxList ID="DBCheckBoxList2"
+ AutoPostBack="true"
+ OnSelectedIndexChanged="DBCheckBoxList2Changed" />
+<com:TLabel ID="DBCheckBoxList2Result" ForeColor="red" />
+</td>
+</tr>
+
+<tr>
+<td class="samplenote">
+Databind with DataTextField and DataValueField specified:
+</td>
+<td class="sampleaction">
+<com:TCheckBoxList ID="DBCheckBoxList3"
+ AutoPostBack="true"
+ DataTextField="name"
+ DataValueField="id"
+ OnSelectedIndexChanged="DBCheckBoxList3Changed" />
+<com:TLabel ID="DBCheckBoxList3Result" ForeColor="red" />
+</td>
+</tr>
+
+</table>
+
+
+<h2>CheckBox List with Validation</h2>
+
+<table class="sampletable">
+
+<tr>
+<td class="samplenote">
+CheckBox list causing validation:
+</td>
+<td class="sampleaction">
+<com:TTextBox ID="TextBox" />
+<com:TRequiredFieldValidator
+ ControlToValidate="TextBox"
+ ErrorMessage="You must enter a value"
+ Display="Dynamic"
+ ValidationGroup="Group2"
+ />
+<com:TCheckBoxList AutoPostBack="true" ValidationGroup="Group2">
+ <com:TListItem Text="Agree" />
+ <com:TListItem Text="Disagree" />
+</com:TCheckBoxList>
+</td>
+</tr>
+
+</table>
+
</com:TContent> \ No newline at end of file