System.Web.UI.WebControls.DataList.RenderContents Method

Renders the list items in the System.Web.UI.WebControls.DataList control.

Syntax

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

Parameters

writer
A System.Web.UI.HtmlTextWriter that represents the output stream to render HTML content on the client.

Remarks

The DataList.RenderContents(System.Web.UI.HtmlTextWriter) method is used primarily by control developers, when deriving a custom control from the System.Web.UI.WebControls.DataList control.

The DataList.RenderContents(System.Web.UI.HtmlTextWriter) method renders the inner content of the System.Web.UI.WebControls.DataList control, including the contained System.Web.UI.WebControls.DataListItem controls.

Requirements

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