View or Edit Mode

Vote:
 

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
Vote:
 
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
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.