Home > DeveloperSection > Articles > HyperLink in ASP.Net

HyperLink in ASP.Net

ASP.Net ASP.Net 
0 Comment(s)
 3321  View(s)
Rate this:

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.

Don't want to miss updates? Please click the below button!

Follow MindStick