HyperLink in ASP.Net

The HyperLink control is used to navigate from one page to another page.

<asp:HyperLink ID="HyperLink1" runat="server">HyperLink</asp:HyperLink>

HyperLink in ASP.Net

 

We can change its properties like BackColor, ForeColor, BorderColor, BorderStyle, BorderWidth, Height etc.

<asp:HyperLink ID="HyperLink1" runat="server" Font-Bold="True" Font-Italic="True" Font-Names="Arial" Font-Size="Larger" ForeColor="#000099" NavigateUrl="~/Default.aspx">HyperLink</asp:HyperLink>

HyperLink in ASP.Net

<asp:HyperLink ID="HyperLink1" runat="server" NavigateUrl="~/Home.aspx">Goto Main Page</asp:HyperLink>

Navigate url specify the destination Url.   

HyperLink in ASP.Net HyperLink in ASP.Net

 

When you click the Hyperlink Goto Home Page then it will redirected to the HomePage.

  Modified On Nov-30-2017 02:09:04 AM

Leave Comment