This documentation is archived and is not being maintained.

WebPartManager::BeginWebPartConnecting Method

Starts the process of connecting two WebPart controls.

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

public:
virtual void BeginWebPartConnecting(
	WebPart^ webPart
)

Parameters

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

The control for which the connection is being formed.

ExceptionCondition
ArgumentNullException

webPart is nullptr.

InvalidOperationException

The current display mode on the page is not ConnectDisplayMode.

ArgumentException

webPart is closed.

- or -

webPart is not part of the Controls collection.

-or -

webPart is equal to the SelectedWebPart control.

The BeginWebPartConnecting method exists so that the process of forming connections between controls can be done in distinct stages, giving developers more control over the connection process. The method performs a set of initial checks to ensure that webPart is in a state where a connection can legitimately be formed. If webPart passes all the checks, it is then set as the currently selected control (see the SelectedWebPart property), and the connecting process can continue.

Notes to Inheritors:

Developers who need to extend the WebPartManager control might want to override this method in a derived class. One approach would be to call the base method, and then add some additional custom handling; or you might want to completely customize the process of starting a connection between controls. For example, you might want to verify that certain data is available before creating the connection.

Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5, 3.0, 2.0
Show: