02 October, 2012

Check if the page is in editmode in EPiServer 7


The official way to check if the page is in edit mode in EPiServer 7 is:
PageEditing.PageIsInEditMode


Another way might be to check the request parameter:
if (! string.IsNullOrEmpty(Request.Params["epieditmode"]))

      return true; 

No comments:

Post a Comment