HtmlAnchor::HRef Property
.NET Framework (current version)
Gets or sets the URL target of the link specified in the HtmlAnchor server control.
Assembly: System.Web (in System.Web.dll)
Use this property to specify the URL to link to when the HtmlAnchor control is clicked.
The following code example demonstrates how to use the HRef property to specify a Web page to navigate to when the HtmlAnchor control is clicked.
.NET Framework
Available since 1.1
Available since 1.1
Show: