System.Web.UI.Control.RenderControl Method

Outputs server control content to a provided System.Web.UI.HtmlTextWriter object using a provided System.Web.UI.Adapters.ControlAdapter object.

Syntax

protected void RenderControl (HtmlTextWriter writer, System.Web.UI.Adapters.ControlAdapter adapter)

Parameters

writer
The System.Web.UI.HtmlTextWriter that receives the control content.
adapter
The System.Web.UI.Adapters.ControlAdapter that defines the rendering.

Remarks

ASP.NET Web pages are usable across a wide range of devices and browsers that can request information from the Web. The Control.Adapter property returns the System.Web.UI.Adapters.ControlAdapter object that renders the control on the requesting device or browser's screen.

For more information about adapters, see Architectural Overview of Adaptive Control Behavior.

If a server control's Control.Visible property is set to true and tracing is enabled for the page, then trace information associated with the control is captured.

Requirements

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