Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. Button click from cache

Button click from cache

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelpquestionannouncement
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Shajeel
    wrote on last edited by
    #1

    Hi, I have a ASP.NET 1.1 application in which there are pages to add/update records. The problem is that when pages are loaded they are being stored in browser cache. Users are able to load them from their cache and perform add operations. So i require two solutions. a) These pages should not be stored in cache without touching client browser settings, as i can currently change their settings to get new page every time but this is not acceptable. b) If thats not possible, then how can i detect whether they have clicked the add button using original page and not cached page.

    Regards Shajeel

    M J 2 Replies Last reply
    0
    • S Shajeel

      Hi, I have a ASP.NET 1.1 application in which there are pages to add/update records. The problem is that when pages are loaded they are being stored in browser cache. Users are able to load them from their cache and perform add operations. So i require two solutions. a) These pages should not be stored in cache without touching client browser settings, as i can currently change their settings to get new page every time but this is not acceptable. b) If thats not possible, then how can i detect whether they have clicked the add button using original page and not cached page.

      Regards Shajeel

      M Offline
      M Offline
      Michael Sync
      wrote on last edited by
      #2

      Put this code in your page <META HTTP-EQUIV="CACHE-CONTROL" CONTENT="NO-CACHE"> Ref ~ http://www.eggheadcafe.com/articles/20060407.asp[^] http://msdn2.microsoft.com/en-us/library/w9s3a17d(VS.71).aspx[^]

      Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net)

      1 Reply Last reply
      0
      • S Shajeel

        Hi, I have a ASP.NET 1.1 application in which there are pages to add/update records. The problem is that when pages are loaded they are being stored in browser cache. Users are able to load them from their cache and perform add operations. So i require two solutions. a) These pages should not be stored in cache without touching client browser settings, as i can currently change their settings to get new page every time but this is not acceptable. b) If thats not possible, then how can i detect whether they have clicked the add button using original page and not cached page.

        Regards Shajeel

        J Offline
        J Offline
        John ph
        wrote on last edited by
        #3

        You can do as Michael said or you can use the following code in the code-behind to do the same. Response.Cache.SetCacheability(HttpCacheability.NoCache)

        Regards
         - J O H N -


        S 1 Reply Last reply
        0
        • J John ph

          You can do as Michael said or you can use the following code in the code-behind to do the same. Response.Cache.SetCacheability(HttpCacheability.NoCache)

          Regards
           - J O H N -


          S Offline
          S Offline
          Shajeel
          wrote on last edited by
          #4

          thank you both of you

          Regards Shajeel

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups