Subversion-Projekte lars-tiefland.prado

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
1 lars 1
<com:TContent ID="body">
2
 
3
<h1>TCheckBox Samples</h1>
4
 
5
<table class="sampletable">
6
 
7
<tr><td class="samplenote">
8
A checkbox with customized text alignment, color and font:
9
</td><td class="sampleaction">
10
<com:TCheckBox
11
	Text="checkbox"
12
	TextAlign="Left"
13
	ForeColor="silver"
14
	BackColor="green"
15
	Font.Size="14pt"
16
/>
17
</td></tr>
18
 
19
<tr><td class="samplenote">
20
A checkbox with label and input attributes:
21
</td><td class="sampleaction">
22
<com:TCheckBox
23
	Text="click me"
24
	InputAttributes.value="value"
25
	LabelAttributes.style="color:red"
26
/>
27
</td></tr>
28
 
29
<tr><td class="samplenote">
30
An auto postback checkbox:
31
</td><td class="sampleaction">
32
<com:TCheckBox
33
	AutoPostBack="true"
34
	Text="click me"
35
	OnCheckedChanged="checkboxClicked"
36
	/>
37
</td></tr>
38
 
39
<tr><td class="samplenote">
40
A checkbox causing validation on a textbox:
41
</td><td class="sampleaction">
42
<com:TTextBox ID="TextBox" />
43
<com:TRequiredFieldValidator
44
	ControlToValidate="TextBox"
45
	Display="Dynamic"
46
	ErrorMessage="input required in the textbox"
47
	ValidationGroup="Group"
48
	/>
49
<com:TCheckBox
50
	Text="submit"
51
	AutoPostBack="true"
52
	ValidationGroup="Group"
53
	/>
54
</td></tr>
55
 
56
<tr><td class="samplenote">
57
A checkbox validated by a required field validator:
58
</td><td class="sampleaction">
59
<com:TCheckBox
60
	ID="CheckBox"
61
	Text="Consent"
62
	ValidationGroup="Group2"
63
	/>
64
<com:TButton Text="Submit" ValidationGroup="Group2" />
65
<com:TRequiredFieldValidator
66
	ControlToValidate="CheckBox"
67
	Display="Dynamic"
68
	ErrorMessage="You must consent."
69
	ValidationGroup="Group2"
70
	/>
71
</td></tr>
72
 
73
<tr><td class="samplenote">
74
A checkbox validated by a required field validator using AutoPostBack:
75
</td><td class="sampleaction">
76
<com:TCheckBox
77
	ID="CheckBox2"
78
	Text="Agree"
79
	Checked="true"
80
	AutoPostBack="true"
81
	ValidationGroup="Group3"
82
	/>
83
<com:TRequiredFieldValidator
84
	ControlToValidate="CheckBox2"
85
	Display="Dynamic"
86
	ErrorMessage="You must agree."
87
	ValidationGroup="Group3"
88
	/>
89
</td></tr>
90
 
91
</table>
92
 
93
<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>