Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!


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??
Mar 06, 2015 21:07

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)

Mar 07, 2015 0:07

Did it work for you Jeremy?

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.