• DXC Service
  • Products
    • Episerver CMS
    • Episerver Commerce
    • Episerver Campaign
    • Episerver Find
    • Episerver Personalization
      • Advance
      • Perform
      • Insight
      • Reach
      • Personalized Find
    • Episerver Social API
    • Episerver apps & integrations
    • Ektron CMS
  • Documentation
    • Get started
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Personalization
      • Insight
      • Social API
      • Service API
    • Developer guides
      • DXC Service
      • CMS
      • Commerce
      • Campaign
      • Find
      • Advance
      • Perform
      • Reach
      • Personalized Find
      • Insight
      • Tracking
      • Profile Store
      • Content Delivery API
      • Social API
      • Service API
      • Forms
      • MA connectors
    • UI feature list
    • Technical overview
    • System requirements
    • Installation
    • User guide
    • APIs and libraries
      • CMS
      • Commerce
      • Campaign
      • Find
      • Social
      • REST APIs
    • Video tutorials
    • Releases
    • Upgrading
      • CMS
      • Commerce
      • Find
      • Forms
      • Service API
      • Personalization
  • Blogs
  • Forum
  • Support
  • EMVPs
  • Register
  • Log in
All Content Documentation Forum User Guide Support Help Center Blogs Articles Releases Bug List SDK Documents
People
Home / Documentation /
  • Framework reference
  • EPiServer.ClientScript.Events
  • PageLeaveCheckEvent
    • PageLeaveCheckEvent Methods
    • PageLeaveCheckEvent Properties

PageLeaveCheckEvent Class

Assembly: EPiServer.Cms.AspNet (in EPiServer.Cms.AspNet.dll) Version: 11.5.1.0 (11.5.1.0)

Syntax:

C#
public class PageLeaveCheckEvent : EventBase

Attaches to the window load event of the client and initializes change listeners for input fields. If input fields has changed when the page is about to be unloaded a confirm dialog is shown to notify the user about unsaved changes. By using the DisablePageLeaveEvent event the leave dialog can be supressed.

Methods

Name Summary Status
AttachEvent Attaches the event to the ScriptManager public
PageLeaveCheckEvent Constructor Creates a new empty PageLeaveCheckEvent public
PageLeaveCheckEvent Constructor (String) Creates a new PageLeaveCheckEvent with the page leave message set public

Properties

Name Summary Status
EventType The client side event for which the event is triggered. public
PageLeaveMessage The message shown when a user leaves a page with unsaved changes public

Inheritance

  • System.Object
  • EPiServer.ClientScript.Events.EventBase
  • EPiServer.ClientScript.Events.PageLeaveCheckEvent

About Episerver

  • episerver.com
  • Episerver certification
  • Job openings
  • License center
  • Privacy statement

Community

  • Blogs
  • Forums
  • Articles
  • Terms of use
  • EMVP program

Learning resources

  • Technical overview
  • Learning path Episerver CMS
  • Developer guides
  • User guide
  • Video tutorials
  • Episerver GitHub
  • Episerver Education

Contact

Episerver Support

See the Support page for contact information.

Feedback on Episerver World

If you’d like to give feedback about this site, please click here. Thank you very much!
© Episerver 2019 │ About Episerver World