WebPartManager.OnWebPartMoving(WebPartMovingEventArgs) WebPartManager.OnWebPartMoving(WebPartMovingEventArgs) WebPartManager.OnWebPartMoving(WebPartMovingEventArgs) WebPartManager.OnWebPartMoving(WebPartMovingEventArgs) Method

Definizione

Genera l'evento WebPartMoving, che indica il processo di spostamento di un controllo WebPart o di un controllo server o utente presente in un'area WebPartZoneBase.Raises the WebPartMoving event, which indicates that a WebPart or server or user control in a WebPartZoneBase zone is in the process of being moved.

protected:
 virtual void OnWebPartMoving(System::Web::UI::WebControls::WebParts::WebPartMovingEventArgs ^ e);
protected virtual void OnWebPartMoving (System.Web.UI.WebControls.WebParts.WebPartMovingEventArgs e);
abstract member OnWebPartMoving : System.Web.UI.WebControls.WebParts.WebPartMovingEventArgs -> unit
override this.OnWebPartMoving : System.Web.UI.WebControls.WebParts.WebPartMovingEventArgs -> unit
Protected Overridable Sub OnWebPartMoving (e As WebPartMovingEventArgs)

Parametri

Commenti

Il OnWebPartMoving metodo genera l' WebPartMoving evento, che si verifica quando WebPart un o un altro controllo server viene spostato all'interno della relativa zona o in un'altra zona.The OnWebPartMoving method raises the WebPartMoving event, which occurs when a WebPart or other server control is being moved within its zone or to another zone. Il metodo offre inoltre la possibilità di annullare il processo in corso.The method also provides the opportunity to cancel the moving process. Se lo spostamento viene completato correttamente, viene WebPartMoved indicato l'evento.If the move is successfully completed, the WebPartMoved event follows.

Gli sviluppatori di pagine possono fornire un gestore personalizzato per l'evento associato aggiungendo OnWebPartMoving l'attributo <asp:webpartmanager> all'elemento in una pagina Web e quindi assegnando un nome di metodo personalizzato all'attributo.Page developers can provide a custom handler for the associated event by adding the OnWebPartMoving attribute to the <asp:webpartmanager> element on a Web page, and then assigning a custom method name to the attribute.

Note per gli eredi

Gli sviluppatori che creano WebPartManager classi derivate OnWebPartMoving(WebPartMovingEventArgs) possono eseguire l'override del metodo per personalizzare la gestione degli eventi.Developers who create derived WebPartManager classes can override the OnWebPartMoving(WebPartMovingEventArgs) method to customize the event handling.

Si applica a

Vedi anche