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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. how to detect back button from client.....

how to detect back button from client.....

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netsysadmintutorialquestion
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.
  • S Offline
    S Offline
    skinnyreptile
    wrote on last edited by
    #1

    Hi guys, When user clicks "back" button, it does not generate a Page_load() event to the server. Is there anyway to detect user click onto back button in ASP.net? Thanks!

    A 1 Reply Last reply
    0
    • S skinnyreptile

      Hi guys, When user clicks "back" button, it does not generate a Page_load() event to the server. Is there anyway to detect user click onto back button in ASP.net? Thanks!

      A Offline
      A Offline
      AGeNt7eVeN
      wrote on last edited by
      #2

      Well when a user clicks back he is actually more than likely viewing a cached page that resides on his computer from the last time he accessed the page. in ASP 3.0 we woud use Response.AddHeader "Pragma", "no-cache" Response.AddHeader "Cache-Control", "no-cache" In ASP.NET we use Response.Cache.SetCacheability(HttpCacheability.NoCache) Response.Cache.SetExpires(Now()) Hope this helps, put it some where near the top of the document!:) - Michael Fasani www.michaelfasani.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