Download Now Code Base AsyncDocs Contact Us
asyncHyperlink
liveDemo
  • Enter a new URL in the text box to update the hyper link text
  • Then press "Change the AsyncHyperLink NavigateUrl" to change the href of the hyper link.
Link To This Page

Mouse over the AsyncHyperLink.

Description

The AsyncHyperLink provides you with an Async-Enabled anchor tag server control.



Features
  • Change it's Text value during an AsyncCallback.
  • Change it's NavigateUrl during an AsyncCallback.
  • Can be focused during an AsyncCallback.
  • Allows you to easily receive OnMouseOut, and OnMouseOver events.
  • 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.
  • Supports many of the other properties provided by asp:HyperLink.
  • 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:AsyncHyperLink runat="server" ID="hlMain" 
Text="Link To This Page"
CssClass="asyncHyperLink" 
NavigateUrl="http://www.AJAXForASP.NET"
OnMouseOut="hlMain_MouseOut" 
OnMouseOver="hlMain_MouseOver"
Target="_blank" />

<dw:AsyncLabel runat="server" ID="lblMain" 
RenderMode="H4">Mouse over the AsyncHyperLink.</dw:AsyncLabel>

<dw:AsyncTextBox runat="server" ID="txtMain"
Size="50"
OnTextChanged="txtMain_TextChanged"
EnableValidation="Enabled" 
MultiValidate="RegularExpression|RequiredField"
ErrorMessageCssClass="errorMsg"
ValidationExpression="http(|s)://(.+)\.(com|net|org|edu)" 
ValidationExpressionOptions="IgnoreCase"
RegexErrorMessage="Please enter a valid url. (ex: http://AsyncControls.com)"
RequiredErrorMessage="Please enter a url.">http://www.AJAXForASP.NET</dw:AsyncTextBox>

<dw:AsyncButton runat="server" ID="btMain" 
CausesValidation="true" 
OnClick="btMain_Click"
CssClass="greyButton">Change AsyncHyperLink NavigateUrl</dw:AsyncButton>