System.Web.UI.Control.RenderControl Method

Outputs server control content to a provided System.Web.UI.HtmlTextWriter object and stores tracing information about the control if tracing is enabled.

Syntax

public virtual void RenderControl (HtmlTextWriter writer)

Parameters

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

Remarks

If a server control's Control.Visible property is set to true, this method determines whether tracing is enabled for the page. If so, it stores trace information associated with the control, and renders the server control content to the page.

This method is automatically called by the page during the rendering, but can be overridden by custom control developers.

Requirements

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