Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
RenderContents Method

DataList.RenderContents Method

Renders the list items in the DataList control.

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

abstract RenderContents : 
        writer:HtmlTextWriter -> unit  
override RenderContents : 
        writer:HtmlTextWriter -> unit

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.

.NET Framework

Supported in: 4.6, 4.5, 4, 3.5, 3.0, 2.0, 1.1
Show:
© 2015 Microsoft