HtmlForm.RenderChildren(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.
Renders the child controls of the HtmlForm control.
protected:
override void RenderChildren(System::Web::UI::HtmlTextWriter ^ writer);
protected public:
override void RenderChildren(System::Web::UI::HtmlTextWriter ^ writer);
protected override void RenderChildren (System.Web.UI.HtmlTextWriter writer);
protected internal override void RenderChildren (System.Web.UI.HtmlTextWriter writer);
override this.RenderChildren : System.Web.UI.HtmlTextWriter -> unit
Protected Overrides Sub RenderChildren (writer As HtmlTextWriter)
Protected Friend Overrides Sub RenderChildren (writer As HtmlTextWriter)
Parameters
- writer
- HtmlTextWriter
The HtmlTextWriter that receives the rendered content.
Exceptions
The Web page has more than one server-side <form>
tag.
Remarks
The RenderChildren method renders client script to ensure that the browser focus is set to the control specified in the DefaultFocus property.
Note
A control specified by the Page.SetFocus property takes precedence over a control specified by the DefaultFocus property.
Notes to Inheritors
When overriding the RenderChildren(HtmlTextWriter) method in a derived class, be sure to call the base class's RenderChildren(HtmlTextWriter) method so that the HtmlForm control's child controls are correctly rendered.
Applies to
See also
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈