| 1 |
lars |
1 |
<com:TContent ID="body" >
|
|
|
2 |
|
|
|
3 |
<h1 id="2001">TButton</h1>
|
|
|
4 |
<com:DocLink ClassPath="System.Web.UI.WebControls.TButton" />
|
|
|
5 |
|
|
|
6 |
<p id="240234" class="block-content">
|
|
|
7 |
<tt>TButton</tt> creates a click button on a Web page. The button's caption is specified by <tt>Text</tt> property. A button is used to submit data to a page. <tt>TButton</tt> raises two server-side events, <tt>OnClick</tt> and <tt>OnCommand</tt>, when it is clicked on the client-side. The difference between <tt>OnClick</tt> and <tt>OnCommand</tt> events is that the latter event is bubbled up to the button's ancestor controls. An <tt>OnCommand</tt> event handler can use <tt>CommandName</tt> and <tt>CommandParameter</tt> associated with the event to perform specific actions.
|
|
|
8 |
</p>
|
|
|
9 |
<p id="240235" class="block-content">
|
|
|
10 |
Clicking on button can trigger form validation, if <tt>CausesValidation</tt> is true. And the validation may be restricted within a certain group of validator controls according to <tt>ValidationGroup</tt>.
|
|
|
11 |
</p>
|
|
|
12 |
<com:RunBar PagePath="Controls.Samples.TButton.Home" />
|
|
|
13 |
|
|
|
14 |
TODO: custom attributes
|
|
|
15 |
|
|
|
16 |
<div class="last-modified">$Id: Button.page 1650 2007-01-24 06:55:32Z wei $</div></com:TContent>
|