WebPartManager.WebPartDeleting Event
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Occurs during the process of permanently deleting an instance of a dynamic WebPart or other server control from a WebPartZoneBase zone.
public:
event System::Web::UI::WebControls::WebParts::WebPartCancelEventHandler ^ WebPartDeleting;
public event System.Web.UI.WebControls.WebParts.WebPartCancelEventHandler WebPartDeleting;
member this.WebPartDeleting : System.Web.UI.WebControls.WebParts.WebPartCancelEventHandler
Public Custom Event WebPartDeleting As WebPartCancelEventHandler
The WebPartDeleting event is raised by the OnWebPartDeleting method, during the process of deleting a dynamic control (one that has been added programmatically or by a user through the Web Parts user interface). The event provides an opportunity to cancel the process before it is finished. If the deletion process is successfully completed, this event is followed by the WebPartDeleted event.
Page developers can provide custom handlers for the event by adding the OnWebPartDeleting
attribute to the <asp:webpartmanager>
element in a page, and assigning a custom method name to the attribute.
Produkt | Versions |
---|---|
.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 |
.NET feedback
.NET er et åben kildekode projekt. Vælg et link for at give feedback: