HtmlForm.RenderChildren(HtmlTextWriter) Method

Definition

Renders the child controls of the HtmlForm control.

C#
protected override void RenderChildren(System.Web.UI.HtmlTextWriter writer);
C#
protected internal override void RenderChildren(System.Web.UI.HtmlTextWriter writer);

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.

Poznámka

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

Produkt Verzie
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also