Template file: Home.page
Class file: Home.php

/ActiveControls/Samples/TActiveButton/Home.page

<com:TContent ID="body">
<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">
An html5 button with <tt>OnClick</tt> event handler:
</td><td class="sampleaction">
<com:TActiveButton
	ButtonTag="Button"
	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:TContent>