WebPartManager.DynamicConnections Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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 Value

Type: System.Web.UI.WebControls.WebParts.WebPartConnectionCollection

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.

System_CAPS_noteNote

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.

.NET Framework
Available since 2.0
Return to top
Show: