Export (0) Print
Expand All
Expand Minimize
This topic has not yet been rated - Rate this topic

WebPartManager.OnWebPartsDisconnecting Method

Note: This method is new in the .NET Framework version 2.0.

Raises the WebPartsDisconnecting event, which indicates that two WebPart or server or user controls in a WebPartZoneBase zone are in the process of ending a connection.

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

protected virtual void OnWebPartsDisconnecting (
	WebPartConnectionsCancelEventArgs e
)
protected void OnWebPartsDisconnecting (
	WebPartConnectionsCancelEventArgs e
)
protected function OnWebPartsDisconnecting (
	e : WebPartConnectionsCancelEventArgs
)

Parameters

e

A WebPartConnectionsCancelEventArgs that contains the event data.

The OnWebPartsDisconnecting method raises the WebPartsDisconnecting event, which occurs when two controls are ending a connection. The method provides the opportunity to cancel the disconnection process. If the connection is successfully removed, the WebPartsDisconnected event follows.

Page developers can provide a custom handler for the associated event by adding the OnWebPartsDisconnecting attribute to the <asp:webpartmanager> element on a Web page, and then assigning a custom method name to the attribute.

Notes to Inheritors Developers who create derived WebPartManager classes can override the OnWebPartsDisconnecting method to customize the event handling.

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

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

.NET Framework

Supported in: 2.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.