Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All
Expand Minimize

UpdatePanelRenderMode Enumeration

Represents the possible layout rendering options for the content of an UpdatePanel control on a page.

Namespace:  System.Web.UI
Assembly:  System.Web.Extensions (in System.Web.Extensions.dll)

type UpdatePanelRenderMode

Member nameDescription
BlockSpecifies that the content of the UpdatePanel control is rendered inside an HTML <div> element.
InlineSpecifies that the content of the UpdatePanel control is rendered inside an HTML <span> element.

The UpdatePanelRenderMode enumeration defines which HTML elements to use to enclose the content of the UpdatePanel control. The RenderMode property must be one of the values of the UpdatePanelRenderMode enumeration. The content of an UpdatePanel control can be rendered inside either an HTML <div> element or a <span> element.

The default RenderMode property value is Block.

The following example shows how to declaratively set the RenderMode property of an UpdatePanel control to Inline. The UpdatePanel control contains a string that represents the number of postbacks from the page. The contents are rendered inline with the surrounding text.

No code example is currently available or this language may not be supported.

.NET Framework

Supported in: 4, 3.5

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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

Community Additions

© 2015 Microsoft