HyperLink Server Control

The HyperLink server control allows you to programmatically work with any hyperlinks on your web pages. Hyperlinks are the links that allow users to jump from one page to another.

Code for Hyperlink Server Control

<asp:HyperLink ID=”HyperLink1″ runat=”server” Text=”Go to Ebiz Holiday Packages” NavigateUrl=”Default2.aspx”></asp:HyperLink>

The interesting thing about the HyperLink server control is that it can be used for images as well as text.

<asp:HyperLink ID=”HyperLink2″ runat=”server” ImageUrl=”MyLinkImage.gif” NavigateUrl=”Default2.aspx”></asp:HyperLink>