Edit

Share via


WebControlAdapter.RenderEndTag(HtmlTextWriter) Method

Definition

Creates the ending tag for the Web control in the markup that is transmitted to the target browser.

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

Parameters

writer
HtmlTextWriter

The HtmlTextWriter containing methods to render the target-specific output.

Remarks

Override the RenderEndTag method to write additional markup tags or add attributes to the ending tag for the WebControl object. Use RenderEndTag in conjunction with the RenderBeginTag method to assure beginning and ending tag consistency.

Notes to Inheritors

The RenderEndTag(HtmlTextWriter) base method calls the RenderEndTag(HtmlTextWriter) method. In turn, the RenderEndTag(HtmlTextWriter) base method calls the RenderBeginTag(HtmlTextWriterTag) method. You can avoid overriding RenderBeginTag(HtmlTextWriter) by deriving from the HtmlTextWriter class and overriding RenderEndTag(), and also possibly RenderBeginTag(HtmlTextWriterTag).

Applies to

See also