WebPartManager.WebPartsConnecting Event

Definition

Occurs during the process of creating a connection between WebPart controls (or server or user controls placed in a WebPartZoneBase zone).

C#
public event System.Web.UI.WebControls.WebParts.WebPartConnectionsCancelEventHandler WebPartsConnecting;

Event Type

Remarks

The WebPartsConnecting event is raised by the OnWebPartsConnecting method, and it signals that the connection process has begun (for example, a user has selected a control and clicked a connect verb), but is not yet completed. The event provides an opportunity to cancel a connection before it is complete. If the connection is successfully completed, this event is followed by the WebPartsConnected event.

Page developers can add a custom handler for the event by adding the OnWebPartsConnecting attribute to the <asp:webpartmanager> element, and assigning a custom method name to the attribute.

Applies to

Proizvod Verzije
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also