SPWebPartManager.ActivateConnections Method
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
Syntax
'Declaration
Protected Overrides Sub ActivateConnections
'Usage
Me.ActivateConnections()
protected override void ActivateConnections()
Remarks
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.