WebPartManager.WebPartsConnected Event

 
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.

Occurs after a specific connection has been established between WebPart controls (or server or user controls).

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

public event WebPartConnectionsEventHandler WebPartsConnected

The WebPartsConnected event is associated with the OnWebPartsConnected method. The event is useful because after you know that a connection is complete, you might want to inform the user of the fact, or even change the user interface (UI) of the page. For example, you might want to display some graphic image that suggests a successful connection between two controls, or display a brief message, and then change the page display mode back to browse mode.

Page developers can associate a custom event handler with this event by adding the OnWebPartsConnected attribute to the <asp:webpartmanager> element in the page, and assigning a custom method name to the attribute.

.NET Framework
Available since 2.0
Return to top
Show: