November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
Perhaps you can use this to check if you are in edit mode?
private bool IsEditOrPreviewMode()
{
HttpRequest request = HttpContext.Current.Request;
Uri referrer = request.UrlReferrer;
return referrer != null &&
referrer.Host == request.Url.Host &&
referrer.Segments[referrer.Segments.Length - 1]
.Equals("EditPanel.aspx", StringComparison.InvariantCultureIgnoreCase);
}
Hello
In episerver edit mode there are a couple of frames i.e menu tree-frame, top-frame and content-frame where the actual page beeing edited is rendered.
I have to have different MasterPages based on a settings om current page being rendered and that is detected in a httmodule and masterpage is switched based on setting.... Everything works fine but not in edit mode because when masterpage is switched there will be a runtime error in edit mode.... My thought is now to just switch masterpage for page beeing rendered in content-frame so is there a way to detect which frame rendering page?
Thanks in advance!