summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveRadioButton/Home.page
blob: 2f721df933095fbdf2b1a162547a5ff3b608211c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
<com:TContent ID="body">

<h1>TActiveRadioButton Samples</h1>

<table class="sampletable">

<tr><td class="samplenote">
A  callback radiobutton:
</td><td class="sampleaction">
<com:TActiveRadioButton
	Text="click me"
	OnCheckedChanged="radiobuttonClicked"
	/>
</td></tr>

<tr><td class="samplenote">
A radiobutton causing validation on a textbox:
</td><td class="sampleaction">
<com:TActiveTextBox ID="TextBox" />
<com:TRequiredFieldValidator
	ControlToValidate="TextBox"
	Display="Dynamic"
	ErrorMessage="input required in the textbox"
	ValidationGroup="Group"
	/>
<com:TActiveRadioButton
	Text="submit"
	AutoPostBack="true"
	ValidationGroup="Group"
	/>
</td></tr>

<tr><td class="samplenote">
A radiobutton validated by a required field validator:
</td><td class="sampleaction">
<com:TActiveRadioButton
	ID="RadioButton"
	Text="Consent"
	ValidationGroup="Group2"
	/>
<com:TActiveButton Text="Submit" ValidationGroup="Group2" />
<com:TRequiredFieldValidator
	ControlToValidate="RadioButton"
	Display="Dynamic"
	ErrorMessage="You must consent."
	ValidationGroup="Group2"
	/>
</td></tr>

<tr><td class="samplenote">
A radiobutton group:
</td><td class="sampleaction">
<com:TActiveRadioButton
	ID="Radio1"
	GroupName="RadioGroup"
	Text="Option 1"
	OnCallback="selectRadioButton"
	/>
<com:TActiveRadioButton
	ID="Radio2"
	GroupName="RadioGroup"
	Text="Option 2"
	OnCallback="selectRadioButton"
	/>
<com:TActiveRadioButton
	ID="Radio3"
	GroupName="RadioGroup"
	Text="Option 3"
	OnCallback="selectRadioButton"
	/>
<com:TActiveRadioButton
	ID="Radio4"
	Text="Option 4 (in a different group)"
	OnCallback="selectRadioButton"
	/>
<br/>
<com:TActiveLabel ID="Result" />
</td></tr>

</table>

</com:TContent>