Web developers wiki ASP.NET Sitecore Sharepoint Kentico by Evident Interactive

Here's how to avoid the annoying "Warning: Page has Expired" message when navigating back to a page.

    protected override void OnPreRender(EventArgs e)
        if (IsPostBack)

            string strUrl = Request.Path;
            // for Kentico use CMSContext.RawUrl 
            // other CMS's may have other specifications
            Response.Write("<html><head><script>location.replace('" + strUrl + "');\n" + "</script></head><body></body></html>\n");



 © Evident Interactive BV