WebControlAdapter.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 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
意見反應
https://aka.ms/ContentUserFeedback。
即將登場:在 2024 年,我們將逐步淘汰 GitHub 問題作為內容的意見反應機制,並將它取代為新的意見反應系統。 如需詳細資訊,請參閱:提交並檢視相關的意見反應