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>TTextBox Samples</h1>
4
 
5
<h2>SingeLine Text Boxes</h2>
6
 
7
<table class="sampletable">
8
 
9
<tr><td class="samplenote">
10
Text box with default settings:
11
</td><td class="sampleaction">
12
<com:TTextBox />
13
</td></tr>
14
 
15
<tr><td class="samplenote">
16
Text box with customized color, font, columns, maximum length:
17
</td><td class="sampleaction">
18
<com:TTextBox
19
	Text="text"
20
	ForeColor="yellow"
21
	BackColor="blue"
22
	Font.Size="14pt"
23
	Columns="4"
24
	MaxLength="6"
25
/>
26
</td></tr>
27
 
28
<tr><td class="samplenote">
29
Text box with vCard support:
30
</td><td class="sampleaction">
31
First Name: <com:TTextBox AutoCompleteType="FirstName" />
32
Last Name: <com:TTextBox AutoCompleteType="LastName" />
33
</td></tr>
34
 
35
<tr><td class="samplenote">
36
Disabled text box:
37
</td><td class="sampleaction">
38
<com:TTextBox Text="disabled" Enabled="false" />
39
</td></tr>
40
 
41
<tr><td class="samplenote">
42
Read-only text box:
43
</td><td class="sampleaction">
44
<com:TTextBox Text="read only" ReadOnly="true" />
45
</td></tr>
46
 
47
<tr><td class="samplenote">
48
Auto postback text box not causing validation:
49
</td><td class="sampleaction">
50
<com:TTextBox
51
	Text="change me"
52
	AutoPostBack="true"
53
	CausesValidation="false"
54
	OnTextChanged="textChanged" />
55
</td></tr>
56
 
57
<tr><td class="samplenote">
58
Auto postback text box causing validation:
59
</td><td class="sampleaction">
60
<com:TTextBox ID="TextBox3"
61
	Width="300px"
62
	AutoPostBack="true"
63
	ValidationGroup="Group1"
64
	Text="change me to 'test' and see" />
65
<com:TRequiredFieldValidator
66
	ControlToValidate="TextBox3"
67
	ErrorMessage="You must enter a value not equal to 'test'."
68
	InitialValue="test"
69
	ValidationGroup="Group1" />
70
</td></tr>
71
 
72
<tr><td class="samplenote">
73
Text box's behavior upon postback:
74
</td><td class="sampleaction">
75
<com:TTextBox ID="TextBox1" Text="text" />
76
<com:TButton
77
	Text="Submit"
78
	OnClick="submitText" />
79
</td></tr>
80
 
81
<tr><td class="samplenote">
82
Safety feature (cross-site scripting prevention):
83
</td><td class="sampleaction">
84
<com:TTextBox
85
	ID="TextBox2"
86
	AutoPostBack="true"
87
	Text="<a href=javascript:xxx>test</a>"
88
	Width="200px"/>
89
<b>SafeText:</b>
90
<com:TLabel ID="Output"
91
	BackColor="silver"
92
	Text=<%#$this->TextBox2->SafeText%> />
93
</td></tr>
94
 
95
</table>
96
 
97
<h2>Password Text Boxes</h2>
98
 
99
<table class="sampletable">
100
 
101
<tr><td class="samplenote">
102
Password with default setting
103
</td>
104
<td class="sampleaction">
105
<com:TTextBox TextMode="Password" /> <com:TButton ID="PassButton1" Text="submit" />
106
</td></tr>
107
 
108
<tr><td class="samplenote">
109
Password with PersistPasswor set true
110
</td>
111
<td class="sampleaction">
112
<com:TTextBox ID="Password2" TextMode="Password" PersistPassword="true" />
113
<com:TButton ID="PassButton2" Text="submit" />
114
</td></tr>
115
</table>
116
 
117
 
118
<h2>MultiLine Text Boxes</h2>
119
 
120
<table class="sampletable">
121
 
122
<tr><td class="samplenote">
123
Text box with default settings:
124
</td><td class="sampleaction">
125
<com:TTextBox TextMode="MultiLine" />
126
</td></tr>
127
 
128
<tr><td class="samplenote">
129
Text box with customized dimensions, font and content:
130
</td><td class="sampleaction">
131
<com:TTextBox TextMode="MultiLine" Rows="6" Columns="60" Font.Italic="true">
132
  <prop:Text>
133
This is a multiline text box.
134
In HTML, it is displayed as a textarea.
135
  </prop:Text>
136
</com:TTextBox>
137
</td></tr>
138
 
139
<tr><td class="samplenote">
140
Disabled text box:
141
</td><td class="sampleaction">
142
<com:TTextBox
143
	TextMode="MultiLine"
144
	Text="disabled"
145
	Enabled="false" />
146
</td></tr>
147
 
148
<tr><td class="samplenote">
149
Read-only text box with text-wrapping disabled:
150
</td><td class="sampleaction">
151
<com:TTextBox
152
	TextMode="MultiLine"
153
	Text="This is a read-only text box with text-wrapping disabled."
154
	ReadOnly="true"
155
	Wrap="false"/>
156
</td></tr>
157
 
158
<tr><td class="samplenote">
159
Auto postback text box not causing validation:
160
</td><td class="sampleaction">
161
<com:TTextBox
162
	TextMode="MultiLine"
163
	Text="change me"
164
	AutoPostBack="true"
165
	CausesValidation="false"
166
	OnTextChanged="textChanged" />
167
</td></tr>
168
 
169
<tr><td class="samplenote">
170
Auto postback text box causing validation:
171
</td><td class="sampleaction">
172
<com:TTextBox ID="MultiTextBox3"
173
	TextMode="MultiLine"
174
	AutoPostBack="true"
175
	ValidationGroup="Group2"
176
	Text="change me to 'demo' and see" />
177
<com:TRequiredFieldValidator
178
	ControlToValidate="MultiTextBox3"
179
	ErrorMessage="You must enter a value not equal to 'demo'."
180
	InitialValue="demo"
181
	ValidationGroup="Group2" />
182
</td></tr>
183
 
184
</table>
185
 
186
<div class="last-modified">$Id: Home.page 1812 2007-03-31 13:19:58Z xue $</div></com:TContent>