| 1 |
lars |
1 |
<com:TContent ID="body">
|
|
|
2 |
<!-- $Id: Home.page 1650 2007-01-24 06:55:32Z wei $ -->
|
|
|
3 |
<h1>TActiveButton Samples (AJAX)</h1>
|
|
|
4 |
|
|
|
5 |
<table class="sampletable">
|
|
|
6 |
|
|
|
7 |
<tr><td class="samplenote">
|
|
|
8 |
A click button with <tt>OnClick</tt> event handler:
|
|
|
9 |
</td><td class="sampleaction">
|
|
|
10 |
<com:TActiveButton
|
|
|
11 |
Text="click me"
|
|
|
12 |
OnClick="buttonClicked" />
|
|
|
13 |
</td></tr>
|
|
|
14 |
|
|
|
15 |
<tr><td class="samplenote">
|
|
|
16 |
A command button with <tt>OnCallback</tt>:
|
|
|
17 |
</td><td class="sampleaction">
|
|
|
18 |
<com:TActiveButton
|
|
|
19 |
Text="click me"
|
|
|
20 |
OnCommand="buttonClicked"
|
|
|
21 |
CommandName="test"
|
|
|
22 |
ActiveControl.CallbackParameter="value"
|
|
|
23 |
CommandParameter="value"
|
|
|
24 |
OnCallback="buttonCallback"
|
|
|
25 |
/>
|
|
|
26 |
</td></tr>
|
|
|
27 |
|
|
|
28 |
<tr><td class="samplenote">
|
|
|
29 |
A button causing validation with <tt>OnCallback</tt>:
|
|
|
30 |
</td><td class="sampleaction">
|
|
|
31 |
<com:TTextBox ID="TextBox" />
|
|
|
32 |
<com:TRequiredFieldValidator
|
|
|
33 |
ControlToValidate="TextBox"
|
|
|
34 |
Display="Dynamic"
|
|
|
35 |
ErrorMessage="input required in the textbox"
|
|
|
36 |
ValidationGroup="Group"
|
|
|
37 |
/>
|
|
|
38 |
<com:TActiveButton
|
|
|
39 |
Text="submit"
|
|
|
40 |
OnClick="buttonClicked"
|
|
|
41 |
OnCallback="buttonCallback"
|
|
|
42 |
ValidationGroup="Group" />
|
|
|
43 |
</td></tr>
|
|
|
44 |
|
|
|
45 |
</table>
|
|
|
46 |
|
|
|
47 |
<com:TJavascriptLogger />
|
|
|
48 |
|
|
|
49 |
<div class="last-modified">$Id: Home.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
|