Try Now
More in this section

Forums / Developing with Sitefinity / how to Cancel DeletePage Event programmatically?

how to Cancel DeletePage Event programmatically?

2 posts, 0 answered
  1. humayoo
    humayoo avatar
    89 posts
    25 Oct 2010
    09 Mar 2011
    Link to this post

    how to Cancel Delete Page Event pro grammatically? For example  there is page which name is A . i want no body, even administrator can not be able to delete this page.

    if any user or administrator click delete for this message, give alert message that this page can not be delete and cancel the delete event.


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    16 Jun 2017
    09 Mar 2011
    Link to this post
    Hi humayoo,

    You can subscribe for Executing event of the CmsManager inside Global.asax and cancel the event there

      void Application_Start(object sender, EventArgs e)
            Telerik.Cms.CmsManager.Executing += new EventHandler<Telerik.ExecutingEventArgs>(CmsManager_Executing);

        void CmsManager_Executing(object sender, Telerik.ExecutingEventArgs e)
            e.Cancel = true;

    All the best,
    Ivan Dimitrov
    the Telerik team
    Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat for a walk through all the exciting stuff we ship with the new release!
2 posts, 0 answered