Master Page back button

Hi Expert,

There is a Back button in asp.net master page.
 <asp:Button ID="btnBack" runat="server" Text="Back" OnClientClick="history.back(); return false;" />  

It works in one page:
<%@ Page Language="C#" MasterPageFile="~/Dq.master" AutoEventWireup="true" CodeBehind="ReviewPage.aspx.cs" Inherits="ReviewPage" Title="Review Detail" %>

But it does not work in another page:
<%@ Page Language="C#" MasterPageFile="~/MyWeb.master" AutoEventWireup="true" CodeBehind="EmployeeFileDocuments.aspx.cs" Inherits="MyWeb.Reports.EmployeeFileDocuments" Title="Employee Documents Image Report" %>

I am not sure it is the following problem or not:
Inherits="MyWeb.Reports.EmployeeFileDocuments"

Sometimes I got the following error. Appreciated!

Webpage has expired
 
   
 
     
Most likely cause:
•The local copy of this webpage is out of date, and the website requires that you download it again.
 
   
Something to try:
 
   

  Click on the Refresh button on the toolbar to reload the page. After refreshing, you might need to navigate to the specific webpage again, or re-enter information.  
 
   

More information  More information  


If you continue to have this problem, try the following:
1.In Internet Explorer, click the Tools button , click Internet Options, and then click the Advanced tab.
2.Scroll down and clear the “Do not save encrypted pages to disk” option in the Security settings.
jssong2000Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
Are you doing anything with disabling the cache for the page?

protected void Page_Init(object sender, EventArgs e)
{
    Response.AppendHeader("Cache-Control", "no-cache");
}

and

protected void Page_Init(object sender, EventArgs e)
{
    Response.AppendHeader("Cache-Control", "no-cache, no-store, must-revalidate");
    Response.AppendHeader("Pragma", "no-cache");
    Response.AppendHeader("Expires", "0");
}
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
jssong2000Author Commented:
Yes. I found the code:
Response.Cache.SetNoStore(). This is culprit.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
ASP.NET

From novice to tech pro — start learning today.