articles

Home / DeveloperSection / Articles / HyperLink in ASP.Net

HyperLink in ASP.Net

Pushpendra Singh 6641 11-Oct-2010

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.


Updated 04-Mar-2020

Leave Comment

Comments

Liked By