WebPartZoneBase.ConnectWebPart Method (WebPart)


Initiates the process of creating a connection between two WebPart controls.

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

protected virtual void ConnectWebPart(
	WebPart webPart


Type: System.Web.UI.WebControls.WebParts.WebPart

The WebPart control that initiates the connection with another selected WebPart control.

Exception Condition

webPart is null.

The ConnectWebPart method can be called only when the page is in connect display mode (ConnectDisplayMode). The method in turn calls the BeginWebPartConnecting method, which completes the several steps necessary to fully connect two WebPart controls. The method should only be used by derived WebPartZoneBase zones such as WebPartZone.

.NET Framework
Available since 2.0
Return to top