System.Web.UI.HtmlControls.HtmlLink.Render Method

Renders the System.Web.UI.HtmlControls.HtmlLink control to the specified System.Web.UI.HtmlTextWriter object.

Syntax

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

Parameters

writer
The System.Web.UI.HtmlTextWriter that receives the rendered content.

Remarks

The HtmlLink.Render(System.Web.UI.HtmlTextWriter) method renders a System.Web.UI.HtmlTextWriter.SelfClosingTagEnd closing bracket (/>) if the ASP.NET application is configured to render XHTML-compliant markup. By default, ASP.NET pages and controls render markup that is compatible with the XHTML 1.1 standard. For more information on configuring an ASP.NET Web site for non-XHTML rendering, see How to: Configure ASP.NET Web Sites for Non-XHTML Rendering.

Requirements

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0