System.Web.UI.LiteralControl.Render Method

Writes the content of the System.Web.UI.LiteralControl object to the ASP.NET page.

Syntax

protected override void Render (HtmlTextWriter writer)

Parameters

writer
a System.Web.UI.HtmlTextWriter

Remarks

When you create a custom server control and want to render specific HTML or text to a client, you can improve the performance of the control by passing the value of the LiteralControl.Text property to the Control.Render(HtmlTextWriter) method rather than calling the LiteralControl.Render(HtmlTextWriter) method.

Requirements

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