asp.net.ph

Skip Navigation Links

HyperLink Control Syntax

ASP.NET Syntax   ASP.NET Syntax for Web Controls


Creates a link on the page that users can click to move to another page.

Declarative Syntax

NOTE: The content of an <asp:HyperLink> control can be defined within its opening tag. In this case, you can close the start tag with a trailing slash /> instead of using a separate end tag.

For information on the individual members of this class, see HyperLink in the class library.

Remarks

Syntax Example

The below code snippet demonstrates how to use a HyperLink control to move to another Web page.

<asp:HyperLink id="hyperLink1"
   ImageUrl = "images/graphic.jpg"
   NavigateUrl = "http://www.microsoft.com"
   Text = "Microsoft Official Site"
   Target = "_new"
   runat="server" />
See Also

HyperLink Class   HyperLink Web Server Control



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note