November Happy Hour will be moved to Thursday December 5th.
AI OnAI Off
November Happy Hour will be moved to Thursday December 5th.
How about something like this in Global.asax.cs:
private static bool pageVisibleInMenuWhenLoaded; public void Application_Start(object sender, EventArgs e) { EditPanel.LoadedPage += new LoadedPageEventHandler(EditPanel_LoadedPage); DataFactory.Instance.PublishingPage += DataFactory_PublishingPage; } private static void DataFactory_PublishingPage(object sender, PageEventArgs e) { if (pageVisibleInMenuWhenLoaded != e.Page.VisibleInMenu) { HttpContext.Current.Response.Write("VisibleInMenu has changed!"); } } private static void EditPanel_LoadedPage(EditPanel sender, LoadedPageEventArgs e) { pageVisibleInMenuWhenLoaded = e.Page.VisibleInMenu; }
How about something like this in Global.asax.cs:
private static bool pageVisibleInMenuWhenLoaded;
public void Application_Start(object sender, EventArgs e) {
EditPanel.LoadedPage += new LoadedPageEventHandler(EditPanel_LoadedPage);
DataFactory.Instance.PublishingPage += DataFactory_PublishingPage;
}
private static void DataFactory_PublishingPage(object sender, PageEventArgs e) {
if (pageVisibleInMenuWhenLoaded != e.Page.VisibleInMenu) {
HttpContext.Current.Response.Write("VisibleInMenu has changed!");
}
}
private static void EditPanel_LoadedPage(EditPanel sender, LoadedPageEventArgs e) {
pageVisibleInMenuWhenLoaded = e.Page.VisibleInMenu;
}
Hi!
We have a situation where we need to detect if a change has happened on the property VisibleInMenu. For instance if a page goes from invisible to visible.
I've been playing aroud with comparing
page.IsVisibleInMenu with page.Property["PageVisibleInMenu"] but I can't see any pattern on how those change.
Is there an event before PublishingPage or PublishedPage?
All help is appreciated!
Best regards,
Peter Bergqvist