HtmlForm.RenderChildren Method

Renders the child controls of the HtmlForm control.

Namespace: System.Web.UI.HtmlControls
Assembly: System.Web (in system.web.dll)

protected public:
virtual void RenderChildren (
	HtmlTextWriter^ writer
) override
protected void RenderChildren (
	HtmlTextWriter writer
)
protected internal override function RenderChildren (
	writer : HtmlTextWriter
)

Parameters

writer

The HtmlTextWriter that receives the rendered content.

Exception typeCondition

HttpException

The Web page has more than one server-side <form> tag.

The RenderChildren method renders client script to ensure that the browser focus is set to the control specified in the DefaultFocus property.

NoteNote

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 method in a derived class, be sure to call the base class's RenderChildren method so that the HtmlForm control's child controls are correctly rendered.

Windows 98, Windows 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

Community Additions

ADD
Show: