summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveLabel/Home.page
blob: 235a7e5e60b8aabd6e3e36d9fe646794fdc7b19e (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
<com:TContent ID="body">

<h1>TActiveLabel Samples</h1>

<table class="sampletable">

<tr><td class="samplenote">
An active label text being set as the result of a callback:
</td><td class="sampleaction">
<com:TActiveLabel Text="This is a label" ID="label1"
/>

<com:TActiveButton
	Text="click me"
	OnClick="buttonClicked"
/>
</td></tr>

<tr><td class="samplenote">
Upon button click, the textbox contents will be set on the label. Note that text needs to be properly escaped to avoid html injections:
</td><td class="sampleaction">
<com:TActiveTextBox ID="txt2"
/>
<com:TActiveButton
	Text="=>"
	OnClick="buttonClicked2"
/>
<com:TActiveLabel Text="" ID="label2"
/>
</td></tr>

</table>

</com:TContent>