System.Web.UI.HtmlControls.HtmlAnchor.RenderAttributes Method

Renders the System.Web.UI.HtmlControls.HtmlAnchor control's attributes to the specified System.Web.UI.HtmlTextWriter object.

Syntax

protected override void RenderAttributes (System.Web.UI.HtmlTextWriter writer)

Parameters

writer
The System.Web.UI.HtmlTextWriter that contains the output stream to render on the client.

Remarks

If the value of the HtmlAnchor.HRef property is a malformed URL, the HtmlAnchor.RenderAttributes(System.Web.UI.HtmlTextWriter) method throws an System.Web.HttpException exception.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0