WebControlAdapter.RenderBeginTag(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 beginning tag for the Web control in the markup that is transmitted to the target browser.
protected:
virtual void RenderBeginTag(System::Web::UI::HtmlTextWriter ^ writer);
protected virtual void RenderBeginTag (System.Web.UI.HtmlTextWriter writer);
abstract member RenderBeginTag : System.Web.UI.HtmlTextWriter -> unit
override this.RenderBeginTag : System.Web.UI.HtmlTextWriter -> unit
Protected Overridable Sub RenderBeginTag (writer As HtmlTextWriter)
Parameters
- writer
- HtmlTextWriter
The HtmlTextWriter containing methods to render the target-specific output.
Remarks
Override the RenderBeginTag method to write additional markup tags or add attributes to the beginning tag for the WebControl object. Use RenderBeginTag in conjunction with the RenderEndTag method to assure beginning and ending tag consistency.
Notes to Inheritors
The RenderBeginTag(HtmlTextWriter) base method calls the RenderBeginTag(HtmlTextWriter) method. In turn, the RenderBeginTag(HtmlTextWriter) base method calls the appropriate RenderBeginTag(HtmlTextWriterTag) overload, which is determined by the type of tag with which the WebControl object was created. You can avoid overriding RenderBeginTag(HtmlTextWriter) by deriving from the HtmlTextWriter class and overriding RenderBeginTag(HtmlTextWriterTag), and also possibly RenderEndTag().
Applies to
See also
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기