In my current application, I have a content list page, which has a small form above to "filter" the GridView below to select an item and go to the next page edit it.
What happens is that when I'm on the edit page and try to go back to the list page via the browser button, it displays "Expired Web Page" (only when I selected some filter on the listing page).
I have tried to use the code below, to try to intercept the load and force a reload of the page without the same values but without success.
private void Page_PreRender(object sender, System.EventArgs e)
{
if (IsPostBack && !Request.UrlReferrer.AbsolutePath.Contains("origem-listar.aspx"))
{
Response.Write("<html><head><script>location.replace('" + Request.Url + "');\n" + "</script></head><body></body></html>\n");
Response.End();
}
}