BulletedList.Render(HtmlTextWriter) Method

Definition

Writes the BulletedList control content to the specified HtmlTextWriter object for display on the client.

protected public:
 override void Render(System::Web::UI::HtmlTextWriter ^ writer);
protected internal override void Render (System.Web.UI.HtmlTextWriter writer);
override this.Render : System.Web.UI.HtmlTextWriter -> unit
Protected Friend Overrides Sub Render (writer As HtmlTextWriter)

Parameters

writer
HtmlTextWriter

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

Remarks

The Render method is used primarily by control developers.

The Render method writes the rendered content of the BulletedList items to the client using the supplied HtmlTextWriter object. Each BulletedList item is represented by an element in the Items collection.

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

Applies to

See also