Επεξεργασία

Κοινή χρήση μέσω


HtmlForm.RenderChildren(HtmlTextWriter) Method

Definition

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