Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
AI OnAI Off
Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more
private void OnMovingPage(object sender, PageEventArgs e)
{
PageData movingPage = EPDataFactory.GetPage(e.PageLink);
if (movingPage.PageTypeName == "Chapter")
{
// etc...
}
}
EPDataFactory.MovingPage += new PageEventHandle(OnMovingPage);
The method:private void OnMovingPage(object sender, PageEventArgs e) { if(e.Page.PageTypeName=="Chapter") { try {PageData testpage = EPDataFactory.GetPage(new PageReference(237)); } catch { e.CancelAction = true; } } }
Any help would be appreciated. Regards Christian