summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/Samples/TActiveButton/Home.page
blob: 76bd17d47b88e379fe6e6c3b38463ead271a035f (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
<com:TContent ID="body">
<!-- $Id$ -->
<h1>TActiveButton Samples (AJAX)</h1>

<table class="sampletable">

<tr><td class="samplenote">
A click button with <tt>OnClick</tt> event handler:
</td><td class="sampleaction">
<com:TActiveButton
	Text="click me"
	OnClick="buttonClicked" />
</td></tr>

<tr><td class="samplenote">
A command button with <tt>OnCallback</tt>:
</td><td class="sampleaction">
<com:TActiveButton
	Text="click me"
	OnCommand="buttonClicked"
	CommandName="test"
	ActiveControl.CallbackParameter="value"
	CommandParameter="value"
	OnCallback="buttonCallback"
	/>
</td></tr>

<tr><td class="samplenote">
A button causing validation with <tt>OnCallback</tt>:
</td><td class="sampleaction">
<com:TTextBox ID="TextBox" />
<com:TRequiredFieldValidator
	ControlToValidate="TextBox"
	Display="Dynamic"
	ErrorMessage="input required in the textbox"
	ValidationGroup="Group"
	/>
<com:TActiveButton
	Text="submit"
	OnClick="buttonClicked"
	OnCallback="buttonCallback"
	ValidationGroup="Group" />
</td></tr>

</table>

<com:TJavascriptLogger />

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