System.Web.UI.WebControls.WebParts.WebPart.OnClosing Method

Enables derived classes to provide custom handling when a System.Web.UI.WebControls.WebParts.WebPart control is closed on a Web Parts page.

Syntax

protected virtual void OnClosing (EventArgs e)

Parameters

e
An EventArgs that contains the event data.

Remarks

The method in the System.Web.UI.WebControls.WebParts.WebPart base class contains no implementation. Derived System.Web.UI.WebControls.WebParts.WebPart controls can override the method if needed to provide custom handling when the control is closed. The System.Web.UI.WebControls.WebParts.WebPartManager control automatically invokes the WebPart.OnClosing(EventArgs) method if you provide an implementation in a derived class.

Requirements

Namespace: System.Web.UI.WebControls.WebParts
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0
Since: .NET 2.0