DataList::RenderContents Method (HtmlTextWriter^)
.NET Framework (current version)
Renders the list items in the DataList control.
Assembly: System.Web (in System.Web.dll)
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.
.NET Framework
Available since 1.1
Available since 1.1
Show: