| 1 |
lars |
1 |
<com:TContent ID="body">
|
|
|
2 |
<!-- $Id: Home.page 1650 2007-01-24 06:55:32Z wei $ -->
|
|
|
3 |
<h1>TActiveCheckBox Samples (AJAX)</h1>
|
|
|
4 |
|
|
|
5 |
<table class="sampletable">
|
|
|
6 |
|
|
|
7 |
<tr><td class="samplenote">
|
|
|
8 |
An active checkbox with <tt>OnCallback</tt>:
|
|
|
9 |
</td><td class="sampleaction">
|
|
|
10 |
<com:TActiveCheckBox
|
|
|
11 |
AutoPostBack="true"
|
|
|
12 |
Text="click me"
|
|
|
13 |
OnCheckedChanged="checkboxClicked"
|
|
|
14 |
OnCallback="checkboxCallback"
|
|
|
15 |
/>
|
|
|
16 |
</td></tr>
|
|
|
17 |
|
|
|
18 |
<tr><td class="samplenote">
|
|
|
19 |
A checkbox causing validation on a textbox:
|
|
|
20 |
</td><td class="sampleaction">
|
|
|
21 |
<com:TTextBox ID="TextBox" />
|
|
|
22 |
<com:TRequiredFieldValidator
|
|
|
23 |
ControlToValidate="TextBox"
|
|
|
24 |
Display="Dynamic"
|
|
|
25 |
ErrorMessage="input required in the textbox"
|
|
|
26 |
ValidationGroup="Group"
|
|
|
27 |
/>
|
|
|
28 |
<com:TActiveCheckBox
|
|
|
29 |
Text="submit"
|
|
|
30 |
ValidationGroup="Group"
|
|
|
31 |
OnCheckedChanged="checkboxClicked"
|
|
|
32 |
OnCallback="checkboxCallback"
|
|
|
33 |
/>
|
|
|
34 |
</td></tr>
|
|
|
35 |
|
|
|
36 |
<tr><td class="samplenote">
|
|
|
37 |
A checkbox validated by a required field validator:
|
|
|
38 |
</td><td class="sampleaction">
|
|
|
39 |
<com:TActiveCheckBox
|
|
|
40 |
ID="CheckBox"
|
|
|
41 |
Text="Consent"
|
|
|
42 |
AutoPostBack="false"
|
|
|
43 |
OnCheckedChanged="checkboxClicked"
|
|
|
44 |
ValidationGroup="Group2"
|
|
|
45 |
/>
|
|
|
46 |
<com:TActiveButton Text="Submit" ValidationGroup="Group2" />
|
|
|
47 |
<com:TRequiredFieldValidator
|
|
|
48 |
ControlToValidate="CheckBox"
|
|
|
49 |
Display="Dynamic"
|
|
|
50 |
ErrorMessage="You must consent."
|
|
|
51 |
ValidationGroup="Group2"
|
|
|
52 |
/>
|
|
|
53 |
</td></tr>
|
|
|
54 |
|
|
|
55 |
<tr><td class="samplenote">
|
|
|
56 |
A checkbox validated by a required field validator:
|
|
|
57 |
</td><td class="sampleaction">
|
|
|
58 |
<com:TActiveCheckBox
|
|
|
59 |
ID="CheckBox2"
|
|
|
60 |
Text="Agree"
|
|
|
61 |
Checked="true"
|
|
|
62 |
OnCheckedChanged="checkboxClicked"
|
|
|
63 |
ValidationGroup="Group3"
|
|
|
64 |
/>
|
|
|
65 |
<com:TRequiredFieldValidator
|
|
|
66 |
ControlToValidate="CheckBox2"
|
|
|
67 |
Display="Dynamic"
|
|
|
68 |
ErrorMessage="You must agree."
|
|
|
69 |
ValidationGroup="Group3"
|
|
|
70 |
/>
|
|
|
71 |
</td></tr>
|
|
|
72 |
|
|
|
73 |
</table>
|
|
|
74 |
|
|
|
75 |
<com:TJavascriptLogger />
|
|
|
76 |
|
|
|
77 |
<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
|