ControlAdapter.EndRender(HtmlTextWriter) Method

Definition

Called after the rendering of a control. In a derived adapter class, generates closing tags that are required by a specific target but not needed by HTML browsers.

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

Parameters

writer
HtmlTextWriter

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

Remarks

The EndRender method is called just after the Render method, and is used to perform target-specific postprocessing after the rendering of the control.

Use the EndRender method in combination with the BeginRender method to ensure opening and closing tag consistency.

Notes to Inheritors

When you inherit from the ControlAdapter class, the EndRender(HtmlTextWriter) base method calls the EndRender() method. Thus, overrides of the EndRender(HtmlTextWriter) method should call the EndRender(HtmlTextWriter) base method only if its processing is in addition to, rather than instead of, the EndRender() method.

Applies to

See also