This documentation is archived and is not being maintained.

WebPartManager.DynamicConnections Property

Note: This property is new in the .NET Framework version 2.0.

Gets the collection of all dynamic connections that currently exist on a Web page.

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

protected internal WebPartConnectionCollection DynamicConnections { get; }
/** @property */
protected WebPartConnectionCollection get_DynamicConnections ()

protected internal function get DynamicConnections () : WebPartConnectionCollection

Property Value

A WebPartConnectionCollection that contains references to all dynamic connections on a page.

Dynamic connections are connections that are created programmatically, as opposed to statically. Static connections are created by declaring them in the markup of a Web Forms page. Dynamic connections are formed either programmatically, or by a user creating a connection using the connection user interface (UI).

The DynamicConnections collection, though it is read-only and you cannot change its contents, does provide programmatic access to each dynamic connection object.


To perform common operations such as connecting or disconnecting WebPart controls, developers should use the public methods on the WebPartManager class, such as DisconnectWebParts and ConnectWebParts, rather than trying to directly modify connection objects in the DynamicConnections collection.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, 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