Webpage has expired when clicking the browser back button an

Posted by Community Admin on 04-Aug-2018 20:32

Webpage has expired when clicking the browser back button and using Custom controls

All Replies

Posted by Community Admin on 20-Jan-2012 00:00

Problem: Internet Explorer shows the error message "webpage has expired" ..The local copy of this webpage is out of date, and the website requires that you download it again.
AFTER CLICKING THE BACK BUTTON when using a custom user control in SiteFinity.

Google Chrom does not show the error message.

What I have is:
Summary page (list all items and a search input box and lists the items using hyperlinks)
Detail page (which list the details of the item which has been clicked using hyperlink)

Problem repeated:
I search; click an item; view the details page and then click the back button using the browser.

Things I have attempted:
Added a timestamp on the page...to see if Caching is occuring (no cache)
Change the Cache settings on the page using CMS

No luck

What Am I about to do:
Start changing asp.net cache settings
Start changing asp.net cache on the actual controls

Any help would be appreciated


Upon more research: This happens on all forms on this CMS website. Yes; this happens on any page the user has to fill in information. Clicking the BACK Button "Expires the page"?

Specifically speaking; I believe it happens during a "POST BACK"

My version of SiteFinity CMS is: 4.3.1885.0
I also adjusted the settings of my caching options up to 3000K. (more than enought)
in
Administration > Settings > Advanced > System> Output Cache Settings


Update: this behavior does not occur with the SITEFINITY search. But they are actually using a querystring. We perform a button_click server side event; whne the user enters input into the "SEARCH TEXT" BOX and we also use jquery table search. But we want to maintain both of these features and not send everything through the query string.

How can we do this?


This is a real BUMMER. no response from SiteFinity and I have now done a complete test
with "TRUE" proof. This is a problem with Site Finity.

PROOF>
Within the SiteFinity AppPool; But not using the UI.
built a simple control and inserted it into a simple page which contained a form tag.
I was able to submit data all day long
I was able to click the back button all day long
Everything worked perfectly!!!

PROOF IN SITEFINITY>
the same control was inserted into a SiteFinity page.
Submitted data just fine.
But When I clicked the back button using the browser Same erro WebPage has expired).


Site FINITY...
Please place the necessary code into this message or email me directly.


SEARCH ENGINE META TAGS:
page expires aspx page using internet explorer
asp.net webpage has expired using back button
asp.net webpage has expired using back button only when using internet explorer
asp.net webpage has expired using back button in IE
Webpage has expired
page expires aspx page using internet explorer
sitefinity page expires
asp.net page during post back expires
page expires aspx page after postback
Sitefinity Webpage has expired aspx page after postback
asp.net page caching on post back post
asp.net page caching on post back post Webpage has expired internet explorer
asp.net page caching on form post back post Webpage has expired internet explorer
asp.net form post Webpage has expired
avoid page expired error asp net
avoid webpage expires form post asp.net
asp.net how to you get the current page server code





//HERE IS THE ASCX CONTROL which is drag/drop into a Sitefinity page
//.net page code
        <asp:Label ID="lblReturnItem" runat="server" Text="Label"></asp:Label>
        <br />
        <br />
        <asp:DropDownList
            ID="ddlDougTestItem" runat="server" AutoPostBack="True"
            onselectedindexchanged="ddlDougTestItem_SelectedIndexChanged">
            <asp:ListItem Value="1">This is item1</asp:ListItem>
            <asp:ListItem Value="2">This is item 2</asp:ListItem>
        </asp:DropDownList>
        <br />
        <br />
        <br />
        <asp:RadioButtonList ID="rblDougTest"
            runat="server" onselectedindexchanged="rblDougTest_SelectedIndexChanged"
            AutoPostBack="True">
            <asp:ListItem Value="A">Radio Button A</asp:ListItem>
            <asp:ListItem Value="B">Radio Button B</asp:ListItem>
        </asp:RadioButtonList>
        <br />
        <br />
        <asp:Button ID="Button1" runat="server" Text="Button"
            onclick="Button1_Click1" />
 
 
// CODE BEHIND
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
 
public partial class UserControls_SCTestFormPost_ScTestFormPost : System.Web.UI.UserControl
    protected void Page_Load(object sender, EventArgs e)
    
 
    
 
    protected void rblDougTest_SelectedIndexChanged(object sender, EventArgs e)
    
        lblReturnItem.Text = DateTime.Now.ToLongTimeString()+  ":this is the radio Button List Value:"
                             + this.rblDougTest.SelectedValue.ToString();
 
    
 
    protected void Button1_Click1(object sender, EventArgs e)
    
        lblReturnItem.Text = DateTime.Now.ToLongTimeString() + ":RDL#>this is the radio Button List Value:"
                             + this.rblDougTest.SelectedValue.ToString();
        lblReturnItem.Text += "<br/><br/>" + DateTime.Now.ToLongTimeString()
                             + ":DDL#>this is the Drop Down List Value After Button Click:"
                             + this.ddlDougTestItem.SelectedValue.ToString();
    
    protected void ddlDougTestItem_SelectedIndexChanged(object sender, EventArgs e)
    
        lblReturnItem.Text = DateTime.Now.ToLongTimeString()
                             + ":this is the Drop Down List Value After Button Click:"
                             + this.ddlDougTestItem.SelectedValue.ToString();
    




Also to Note:  it looks like many other people have solved this problem for STANDARD Asp.net websites.  Response.CacheControl="Public"%
Please reference:  http://forums.asp.net/t/1642683.aspx
How could I do something like this for sitefintity

Thanks, Doug Lubey of Louisiana

Posted by Community Admin on 21-Jan-2012 00:00

Hi Doug,

Please excuse us for the inconvenience. We are aware of the issue  issue and are working on providing good solution to it. 
Meanwhile, have you tried using RadScriptManager on the page - the manager should be able to manage the scripts in a good way and fix the problem? Also, please note that even when the message appears ViewState does preserve your input, if you follow the instructions given when the "Webpage has expired" warning is displayed, and refresh the webpage, you'll note that the user selection is still preserved in the dropdown. For more information concerning the IE behavior, and possible workarounds, please check the online community (e.g. dotnetscraps.com/.../Warning-Page-has-Expired-Internet-Explorer.aspx).

Kind regards,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 21-Jan-2012 00:00

Where is this on the issue tracker?  I would like to monitor this for a fix. 

How important is it that we(Telerik) find a solution to this?
We are in the final stages of publishing our corporate website using sitefinity.
This was something we thought we could easily fix. We are on the
last 24 hours and now we have to reprogram several of our user input forms.

The customers "EXPECT" to be able to use the back button in their browser.
Yes, I do know "REFRESH" works...but this error makes our company look bad.
It makes our programming look bad.

If the RAD Script Manager has a work around for this; please send explicit
documentation to utilize this feature in SiteFinity Pages. 

Posted by Community Admin on 23-Jan-2012 00:00

Hi,

I have made the issue public, you can track its proggress and vote for its popularituy on this public URL.
Please note that if you create a standard ASP.NET WebApplication project and add the same user control on a page that has OutputCache enables, you'll notice the same behavior under IE. Currently what you can do is set the desired page's Cache Profile to No Caching, which will allow you to use the browser back button without giving you the error message.

Kind regards,
Boyan Barnev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

Posted by Community Admin on 25-Apr-2012 00:00

Hi,
We are experience the same "web page expired" issue.  We created a page and added a user control (EventsScheduleView) to display a montly view of a calendar with individual events listed.  When a user selects an event, they are taken to a details page.  When they use the back button, they get the expired page message. Under"Properties" and then "Performance" for the page, we have not enabled caching.  For the control, the EnableViewState is set to True.

Posted by Community Admin on 25-Apr-2012 00:00

Hi,
We are experiencing the same "web page expired" issue.  We created a page and added a user control (EventsScheduleView) to display a montly view of a calendar with individual events listed.  When a user selects an event, they are taken to a details page.  When they use the back button, they get the expired page message. Under"Properties" and then "Performance" for the page, we have not enabled caching.  For the control, the EnableViewState is set to True.

Posted by Community Admin on 21-Mar-2014 00:00

What was the recommended solution to avoid this behavior?

This thread is closed