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
)
Not applicable.

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 Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

Community Additions

ADD
Show: