summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/ActiveControls/ActiveImageButton.page
blob: 3b83a49858207f69c5ef1448f711ebe9820e2664 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<com:TContent ID="body" >

<h1 id="158020">TActiveImageButton</h1>
<com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveImageButton" />

<p class="block-content">
<tt>TActiveImageButton</tt> is the active counterpart of <tt>TImageButton</tt>.
When a <tt>TActiveImageButton</tt> is clicked, rather than a normal post back request a callback request is initiated.
The<tt>OnCallback</tt> event is raised during a callback request and it is raised <b>after</b> the <tt>OnClick</tt> event.
</p>

<p class="block-content">
<tt>TActiveImageButton</tt> is similar to <tt>TActiveButton</tt>, except that <tt>TActiveImageButton</tt> displays the button as an image. The image is specified via <tt>ImageUrl</tt>, and the alternate text is specified by <tt>Text</tt>. In addition, it is possible to obtain the coordinate of the point where the image is clicked. The coordinate information is contained in the event parameter of the <tt>OnClick</tt> event (not <tt>OnCallback</tt>).
</p>
<com:RunBar PagePath="ActiveControls.Samples.TActiveImageButton.Home" />

</com:TContent>