<com:TContent ID="body"> <h1 id="122026">TActiveButton</h1> <com:DocLink ClassPath="System.Web.UI.ActiveControls.TActiveButton" /> <p id="610410" class="block-content"><tt>TActiveButton</tt> is the active control counter part to <a href="?page=Controls.Button">TButton</a>. When a <tt>TActiveButton</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 raise <strong>after</strong> the <tt>OnClick</tt> event. </p> <p id="610411" class="block-content">When the <tt>ActiveControl.EnableUpdate</tt> property is true, changing the <tt>Text</tt> property during a callback request will update the button's caption on the client-side.</p> <p id="610412" class="block-content">Since the <tt>OnCallback</tt> event is raised only during a callback request, the <tt>OnCallback</tt> event handler can be used to handle logic specifically related to callback requests. The <tt>OnClick</tt> event handler is raised when ever the button is clicked, even if javascript is disabled.</p> <p id="610413" class="block-content">The following example the use of both the <tt>OnClick</tt> and <tt>OnCallback</tt> events of an <tt>TActiveButton</tt>.</p> <com:RunBar PagePath="ActiveControls.Samples.TActiveButton.Home" /> </com:TContent>