System.Web.UI.WebControls.BulletedList.Render Method

Writes the System.Web.UI.WebControls.BulletedList control content to the specified System.Web.UI.HtmlTextWriter object for display on the client.

Syntax

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

Parameters

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

Remarks

The BulletedList.Render(System.Web.UI.HtmlTextWriter) method is used primarily by control developers.

The BulletedList.Render(System.Web.UI.HtmlTextWriter) method writes the rendered content of the System.Web.UI.WebControls.BulletedList items to the client using the supplied System.Web.UI.HtmlTextWriter object. Each System.Web.UI.WebControls.BulletedList item is represented by an element in the ListControl.Items collection.

If the ListControl.Items property of the System.Web.UI.WebControls.BulletedList control is empty, no content is rendered to the System.Web.UI.HtmlTextWriter. If there is at least one list item in the ListControl.Items collection, the BulletedList.Render(System.Web.UI.HtmlTextWriter) method writes the HTML content for the System.Web.UI.WebControls.BulletedList control using the WebControl.RenderBeginTag(System.Web.UI.HtmlTextWriter), BulletedList.RenderContents(System.Web.UI.HtmlTextWriter), and WebControl.RenderEndTag(System.Web.UI.HtmlTextWriter) methods.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0