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. How to expire page when moved to next page....

How to expire page when moved to next page....

Scheduled Pinned Locked Moved ASP.NET
tutorial
2 Posts 2 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.
  • K Offline
    K Offline
    KBM73
    wrote on last edited by
    #1

    Hi, I have page in which user will fill the data by clicking submit....once he click submit button it goes to the next page and I want when user wants to go back to previous the content of previous page must be clear and he get the message "Page expire". Regards, KBM

    S 1 Reply Last reply
    0
    • K KBM73

      Hi, I have page in which user will fill the data by clicking submit....once he click submit button it goes to the next page and I want when user wants to go back to previous the content of previous page must be clear and he get the message "Page expire". Regards, KBM

      S Offline
      S Offline
      SABhatti
      wrote on last edited by
      #2

      ASP.NET 1: Response.ExpiresAbsolute = DateTime.Now.AddDays(-1) Response.CacheControl = "no-cache"; Response.Expires = -500; ASP.NET 2: Response.Cache.SetCacheability(HttpCacheability.NoCache); Response.Cache.SetExpires(DateTime.Now.AddDays(-1)); //or a date much earlier than current time

      -----

      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