asp.net.ph

Skip Navigation LinksHome > ASP.NET Web Forms > Web Forms Server Controls > Controls You Can Use on Web Forms > ASP.NET HTML WebControls

ASP.NET HTML Controls

  Section Index


HtmlAnchor Server Control

Allows programmatic access to the HTML <a> element on the server.

The HtmlAnchor control <a runat=server> is an ASP.NET implementation of the HTML anchor <a> element.

The control behaves in much the same way as the standard HTML version, except that it is fully programmable.

The following sample illustrates using an HtmlAnchor control, the text of which is dynamically changed depending on a condition.

Dynamic HtmlAnchor Sample
Run Sample | View Source
See Also

HtmlAnchor Control Syntax   HyperLink Web Server Control   HTML A Element

More ...
Back to top


© 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