See Also: HtmlAnchor Members
There are two ways to use the System.Web.UI.HtmlControls.HtmlAnchor class. The first is for navigation: using the HtmlAnchor.HRef property to define the location of the page to link to. The second is for postback events: using the HtmlAnchor.ServerClick event to programmatically handle the user's clicking a link.
This control can be used to display user input, which might include malicious client script. Check any information that is sent from a client for executable script, SQL statements, or other code before displaying it in your application. ASP.NET provides an input request validation feature to block script and HTML in user input. Validation server controls are also provided to assess user input. For more information, see Validation Server Controls.