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. ASP.Net caching problem

ASP.Net caching problem

Scheduled Pinned Locked Moved ASP.NET
csharpasp-nethelptutorial
5 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.
  • A Offline
    A Offline
    Anuradha612
    wrote on last edited by
    #1

    Hi, Can some body please tell me, of how to prevent ASP.Net pages from being cached, Each time i request the page, it retreives the page from the cached ones, then to reflect the new changes, i have refresh it every time, Thanks in advance

    P N 2 Replies Last reply
    0
    • A Anuradha612

      Hi, Can some body please tell me, of how to prevent ASP.Net pages from being cached, Each time i request the page, it retreives the page from the cached ones, then to reflect the new changes, i have refresh it every time, Thanks in advance

      P Offline
      P Offline
      Parwej Ahamad
      wrote on last edited by
      #2

      Put this tag in the html head section to tell the browser not to cache: <meta http-equiv="Cache-Control" content="no-cache" > or write the on Page Load event Response.Cache.SetCacheability(HttpCacheability.NoCache)

      /***********************/ Parwej Ahamad g.parwez@gmail.com /***********************/

      A 1 Reply Last reply
      0
      • A Anuradha612

        Hi, Can some body please tell me, of how to prevent ASP.Net pages from being cached, Each time i request the page, it retreives the page from the cached ones, then to reflect the new changes, i have refresh it every time, Thanks in advance

        N Offline
        N Offline
        N a v a n e e t h
        wrote on last edited by
        #3

        Anuradha612 wrote:

        Can some body please tell me, of how to prevent ASP.Net pages from being cached,

        As I told in my previous replies to you, it's your browser problem. Have you checked in other machine ? Usually ASP.NET won't cache any data if you are not telling it to do. Check your browser settings. Check the same page in another machine.

        All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia My Website | Ask smart questions

        1 Reply Last reply
        0
        • P Parwej Ahamad

          Put this tag in the html head section to tell the browser not to cache: <meta http-equiv="Cache-Control" content="no-cache" > or write the on Page Load event Response.Cache.SetCacheability(HttpCacheability.NoCache)

          /***********************/ Parwej Ahamad g.parwez@gmail.com /***********************/

          A Offline
          A Offline
          Anuradha612
          wrote on last edited by
          #4

          there is no effect with the two solutions provided, could u pls suggest some other alternative Thanks

          P 1 Reply Last reply
          0
          • A Anuradha612

            there is no effect with the two solutions provided, could u pls suggest some other alternative Thanks

            P Offline
            P Offline
            Parwej Ahamad
            wrote on last edited by
            #5

            Please go through this URL. It's have the all scenario.

            /***********************/ Parwej Ahamad g.parwez@gmail.com /***********************/

            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