System.Web.UI.WebControls.WebControl.Render Method

Renders the control to the specified HTML writer.

Syntax

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

Parameters

writer
The System.Web.UI.HtmlTextWriter object that receives the control content.

Remarks

The WebControl.Render(System.Web.UI.HtmlTextWriter) method is used primarily by control developers.

The WebControl.Render(System.Web.UI.HtmlTextWriter) method sends the Web control to the specified System.Web.UI.HtmlTextWriter instance. Override this method to send your custom server control to the client.

The WebControl.Render(System.Web.UI.HtmlTextWriter) method first calls the WebControl.RenderBeginTag(System.Web.UI.HtmlTextWriter) method, then the WebControl.RenderContents(System.Web.UI.HtmlTextWriter) method, and finally the WebControl.RenderEndTag(System.Web.UI.HtmlTextWriter) method to send the control to the client.

Requirements

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