1). If you need a link on a page, use the HTML anchor element ( <a href="...">...</a> ).
2). If you need to dynamically control link properties (e.g. href, text, visibility, etc.), use server side binding / linking
Or server "webcontrol" System.Web.UI.WebControls.HyperLink
<asp:HyperLink id="aExample" runat="server" NavigateUrl="..." .../>
or server "htmlcontrol" System.Web.UI.HtmlControls.HtmlAnchor
<a id="aExample" runat="server" href="...">...</a>
3). In addition, server controls have the potential for more complex programming, for example, dynamically building a binding element from the System.Web.UI.Control database
source share