This topic has not yet been rated - Rate this topic

SPWebPartManager.ActivateConnections Method

SharePoint 2010

Makes active all connections on a webpage that are currently inactive.

Namespace:  Microsoft.SharePoint.WebPartPages
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: No
Available in SharePoint Online
protected override void ActivateConnections()

This override activates existing connections between the Web Part and other server controls residing in zones.

In some cases, if there is a conflict in the connections being activated, this method will disconnect a connection. During the disconnection process, the WebPartsDisconnecting() event is raised. Usually, developers can cancel this event, but in the case where there is a conflict among the connections, it cannot be canceled because the SPWebPartManager must resolve the conflict in order to complete the process of activating the connections.

Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ