MenuAdapter.RenderEndTag(HtmlTextWriter) Method

Definition

Creates final markup and writes the markup for the closing tag of the control to the output stream emitted to the browser or device.

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

Parameters

writer
HtmlTextWriter

The HtmlTextWriter instance containing methods to build and render the device-specific output.

Remarks

The RenderEndTag method writes the markup for the closing tag of the control to the output stream emitted to the response stream for the client browser. The attributes, style attributes, and opening tag are rendered in the RenderBeginTag method. The MenuItem objects are rendered individually in the RenderContents method.

Override RenderEndTag when you want to implement custom behavior. For example, override the method to write multiple closing tags to the response stream after any control content, such as </td></tr></table>. Use the RenderEndTag method in conjunction with the RenderBeginTag method to assure opening and closing tag consistency in your output.

Applies to

See also