Download Now Code Base AsyncDocs Contact Us
asyncButton
liveDemo
Click the "AsyncButton" to change the text on the button.

Description

The AsyncButton is one of three AsyncWebControls that provides you with a simple interface that allows you to control each AsyncCallback and sort.



Features
  • Implements the IAsyncCommandControl interface, which provides you with an unprecedented level of control.
  • Implements the IAsyncSortControl interface, giving you sorting abilities.
  • Change it's Enabled state during an AsyncCallback.
  • Change it's Text value during an AsyncCallback.
  • Can be focused during an AsyncCallback.
  • Can be scrolled into view during an AsyncCallback.
  • Its an AsyncWebControl, which means that you can change it's visibility, CSS class, Left/Top coordinate, Width/Height, and ForeColor/BackColor, during an AsyncCallback.
  • Allows you to easily receive OnClick, and OnCommand events.
  • Supports many of the other properties provided by asp:Button.
  • Functions as a regular server control if the browser does not support asynchronus operations, allowing you to support legacy browsers.
   
<%@ Register Assembly="AsyncControls" Namespace="DelvingWare.AsyncControls" TagPrefix="dw" %>

<dw:AsyncButton runat="server" ID="btVisible"
CssClass="greyButton"
OnClick="btVisible_Click"
Text="Hide AsyncButton" />

<dw:AsyncButton runat="server" ID="btEnable"
CssClass="greyButton"
OnClick="btEnable_Click"
Text="Disable AsyncButton" />
<p />

<dw:AsyncButton runat="server" ID="btMain" 
OnClick="btMain_Click" 
Text="AsyncButton" />