Javatpoint Logo
Javatpoint Logo

ASP.NET Web Forms HyperLink

It is a control that is used to create a hyperlink. It responds to a click event. We can use it to refer any web page on the server.

To create HyperLink either we can write code or use the drag and drop facility of visual studio IDE. This control is listed in the toolbox.

This is a server side control and ASP.NET provides own tag to create it. The example is given below.

Server renders it as the HTML control and produces the following code to the browser.

This control has its own properties that are tabled below.

Property Description
AccessKey It is used to set keyboard shortcut for the control.
TabIndex The tab order of the control.
BackColor It is used to set background color of the control.
BorderColor It is used to set border color of the control.
BorderWidth It is used to set width of border of the control.
Font It is used to set font for the control text.
ForeColor It is used to set color of the control text.
Text It is used to set text to be shown for the control.
ToolTip It displays the text when mouse is over the control.
Visible To set visibility of control on the form.
Height It is used to set height of the control.
Width It is used to set width of the control.
NavigateUrl It is used to set navigate URL.
Target Target frame for the navigate url.


// user-form.aspx

This property window shows properties for the HyperLink control.

ASP HyperLink 1


ASP HyperLink 2

This link redirects to Javatpoint home page.

ASP HyperLink 3

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA