MenuAdapter.RenderEndTag(HtmlTextWriter) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.