Take the community feedback survey now.
                AI OnAI Off
            
        Take the community feedback survey now.
 
                
EPiServer.Core.IPageSource page = System.Web.HttpContext.Current.Handler as EPiServer.Core.IPageSource;
if (page != null)
{
    EPiServer.Core.PageData pd = page.CurrentPage;
    if (pd != null)
    {
         // do stuff here
    }
}
Brgds,
Niklas
                        