DesignMode

Vote:
 
How can one tell if a block or page object is currently running in design mode? Checking the PageBase.IsDesignMode property seems to always return false. There must be an easy way to do this. Any ideas??
#118479
Mar 06, 2015 21:07
Vote:
 

DesignMode only returns true while editing the control in Visual Studio, which has nothing to do with EPiServer. Is that really want you want to check? Or do you want to see if the page or block is in edit mode? In that case you have:

if (EPiServer.Editor.PageEditing.PageIsInEditMode)
{

}
#118484
Mar 07, 2015 0:07
Vote:
 

Did it work for you Jeremy?

#119009
Mar 18, 2015 18:40
* 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.