WebPartManager.ActivateConnections Method ()


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

Makes active all connections on a Web page that are currently inactive.

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

protected virtual void ActivateConnections()

The ActivateConnections method is called on each request to a page to activate existing connections between WebPart and other server controls residing in WebPartZoneBase zones. In some cases, for instance if there is a conflict in the connections being activated, this method in turn calls the DisconnectWebPart method to end the problematic connection. During the disconnection process the WebPartsDisconnecting event is raised. Normally developers can cancel this event, but in the case where this is a conflict among the connections it cannot be cancelled, because the WebPartManager control needs to resolve the conflict in order to finish the process of activating connections. For details, see WebPartsDisconnecting event.

.NET Framework
Available since 2.0
Return to top