Class DisablePageLeaveEvent

DisablePageLeaveEvent is used to suppress the warning shown by PageLeaveCheckEvent when a page containing changed input fields is about to be unloaded.

Inheritance
System.Object
DisablePageLeaveEvent
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.ClientScript.Events
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7
Syntax
public class DisablePageLeaveEvent : EventBase

Constructors

DisablePageLeaveEvent(EventType)

Create a new DisablePageLeaveEvent event

Declaration
public DisablePageLeaveEvent(EventType eventType)
Parameters
Type Name Description
EventType eventType

The type of event on where we remove PageLeaveEvent

Methods

AttachEvent(ScriptManager, String)

Attaches the DisablePageLeaveEvent event to the supplied script manager

Declaration
public override void AttachEvent(ScriptManager scriptManager, string clientId)
Parameters
Type Name Description
ScriptManager scriptManager
System.String clientId
Overrides

Extension Methods