RenderContents Method

DataList::RenderContents Method (HtmlTextWriter^)

 

Renders the list items in the DataList control.

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public protected:
virtual void RenderContents(
	HtmlTextWriter^ writer
) override

Parameters

writer
Type: System.Web.UI::HtmlTextWriter^

A HtmlTextWriter that represents the output stream to render HTML content on the client.

The RenderContents method is used primarily by control developers, when deriving a custom control from the DataList control.

The RenderContents method renders the inner content of the DataList control, including the contained DataListItem controls.

The following code example demonstrates how to override the RenderContents method in a custom server control so that some text precedes the DataList object.

No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show:
© 2016 Microsoft