summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Controls/Samples/TImageButton/Home.page
blob: 5134b10436704343a28f06eeb20be3249069c0c8 (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
<com:TContent ID="body">

<h1>TImageButton Samples</h1>

<table class="sampletable">

<tr><td class="samplenote">
A click image button showing the click location:
</td><td class="sampleaction">
<com:TImageButton
	ImageUrl=<%~ hello_world.gif %>
	Text="hello world"
	OnClick="buttonClicked"
	/>
<com:TLabel ID="Result" />
</td></tr>

<tr><td class="samplenote">
A command image button:
</td><td class="sampleaction">
<com:TImageButton
	ImageUrl=<%~ hello_world.gif %>
	Text="hello world"
	OnCommand="buttonClicked"
	CommandName="test"
	CommandParameter="value"
	/>
<com:TLabel ID="Result2" />
</td></tr>

<tr><td class="samplenote">
An image button causing validation:
</td><td class="sampleaction">
<com:TTextBox ID="TextBox" />
<com:TRequiredFieldValidator
	ControlToValidate="TextBox"
	Display="Dynamic"
	ErrorMessage="input required in the textbox"
	ValidationGroup="Group"
	/>
<com:TImageButton
	ImageUrl=<%~ hello_world.gif %>
	Text="hello world"
	ValidationGroup="Group"
	/>
</td></tr>

</table>

<div class="last-modified">$Id$</div></com:TContent>