Download Now Code Base AsyncDocs Contact Us
asyncLinkButton
liveDemo
  • Click "Click Me" (the AsyncLinkButton) to perform a server-side action.
  • Move the mouse over or mouse out of the AsyncLinkButton to perform a server-side action.

Click Me

Click the AsyncLinkButton

Description

The AsyncLinkButton 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, OnCommand, OnMouseOver, and OnMouseOut events.
  • Supports many of the other properties provided by asp:LinkButton.
  • 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"
Text="Hide AsyncLinkButton"
OnClick="btVisible_Click" />

<dw:AsyncButton runat="server" ID="btEnable"
CssClass="greyButton"
Text="Disable AsyncLinkButton"
OnClick="btEnable_Click" />
<p/>
<dw:AsyncLinkButton runat="server" ID="lnkMain" 
Text="Click Me" 
CssClass="lnkButton"
OnClick="lnkMain_Click" 
OnMouseOut="lnkMain_MouseOut" 
OnMouseOver="lnkMain_MouseOver" />

<dw:AsyncLabel runat="server" ID="lblMain" 
RenderMode="Paragraph">Click the AsyncLinkButton</dw:AsyncLabel>