Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8223163
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T14:35:08+00:00 2026-06-07T14:35:08+00:00

I have an ASP.NET project that I have created in Visual Studio 2010. So

  • 0

I have an ASP.NET project that I have created in Visual Studio 2010. So to begin the project, I got the generic “MY ASP.NET APPLICATION” page. I have since removed all that generic content and am building the application based off the needs of the user.

On my default.aspx page, I have a datagrid wrapped in an UpdatePanel. When a user selects a row from the datagrid, I navigate to a new page. Everything is working fine but if the user was to click the back button in the browser, it acts as if it is loading the page from an old cached version because it shows the generic “MY ASP.NET APPLICATION” page again.

I have researched this for awhile and everything says that if you tell the Response not to use the cache, it forces the Page_Load to hit if the user clicks the back button. However, doing this is not working for me. If I were to click the refresh button, or type F5, then my page is reloaded successfully. I am using IE9 and here is what I have tried in the Page_Load of my master page:

        Response.Cache.SetExpires(DateTime.Now.AddDays(-1));
        Response.Cache.SetValidUntilExpires(false);
        Response.Cache.SetRevalidation(HttpCacheRevalidation.AllCaches);
        Response.Cache.SetCacheability(HttpCacheability.NoCache);
        Response.Cache.SetNoStore();
        Response.Expires = -1441;
        Response.ExpiresAbsolute = DateTime.Now.AddDays(-1);
        Response.AppendHeader("pragma", "no-cache");
        Response.CacheControl = "No-cache";
        Response.AddHeader("cache-control", "no-store, no-cache, must-revalidate");

Also, I tried inserting this in master page’s script:

<meta http-equiv="Expires" content="0"/>
<meta http-equiv="Cache-Control" content="no-cache"/>
<meta http-equiv="Pragma" content="no-cache"/>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-07T14:35:10+00:00Added an answer on June 7, 2026 at 2:35 pm

    Figured this out early this morning. Turns out it is just another gotcha when using Ajax. I wasn’t adding a History Point before redirecting to a new page when the user selected a row in the datagrid. So i just needed to do a AddHistoryPoint on the scriptmanager before doing the redirect and all was well in the neighborhood.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a ASP.NET MVC 2 project on Visual Studio 2010. I want to
I have a basic ASP.Net project created in Visual Studio 2008 on Windows Server
I have created an asp.net mvc2 project using the standard visual studio template which
I have accumulated an ASP.NET project that was running everything off of one page
When I create a new ASP.NET project in Visual Studio 2010, it creates the
I am using ASP.NET MVC 2 in Visual Studio 2010. In my project I
If I create an ASP.NET MVC 3 (with Razor) application in Visual Studio 2010,
I have an ASP.NET project that contains many classes. I am thinking about creating
We have an ASP.Net MVC project that will start with a single web server
I have an Asp.net MVC project that modestly uses jQuery scripts. My views also

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.