Virtual Happy Hour is canceled this month (March) due to Good Friday.
Try our conversational search powered by Generative AI!
AI OnAI Off
Virtual Happy Hour is canceled this month (March) due to Good Friday.
if (Request["id"]!=null && Request["id"].Contains("_"))
{
//edit mode if you dont use page providers at least
}
I noticed that on our web-site when page has a Stop publish date set up and gets expired - it disappears from the menus but is still being shown if one know the direct link to it.
I tried to hide the content and show some kind of "Page is unnaccessible" message by using
It works fine, the only problem is that you cannot see the content in the preview when in EditMode as well.
So now I need to see if I'm in the EditMode or not. If I understand correctly, the RenderType class exists specifically for this purpose, but I couldn't find the way to use it properly in the master page template.
Any ideas how I should have done this?
Thanx.