View or Edit Mode

andreas.ek
Member since: 2007
 

Is there a way to get the current page mode from code behind?

I want to know if the page is displayed in EPiServer Edit Mode or in View Mode.

Regards, Andreas Ek, Internetfabriken AB

#27719 Feb 09, 2009 10:57
  • Anders Hattestad
    Member since: 1996
     
    I quess you could check if the Request["id"] contains _ then it you will be in Edit Mode. at least for local oage provider :)
    #27806 Feb 09, 2009 12:21