Back Button - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Back Button

montalbancjmontalbancj Posts: 1Member
Is there any way to control the back button (in internet explorer) via asp.net.... Help

Comments

  • AshishDarwinAshishDarwin Posts: 1Member
    : Is there any way to control the back button (in internet explorer) via asp.net.... Help
    :

    Hi,
    Unfortunatly there is no direct way of doing this. I generally use an alternative way of disabling back button.

    Expire the response immediately, so that user cannot use browser back/forward

    Response.Expires = -1
    Response.ExpiresAbsolute = Today.AddDays(-1)
    Response.AddHeader("pragma", "no-cache")
    Response.AddHeader("cache-control", "private")
    Response.CacheControl = "no-cache"

    I hope this should help.
  • babu_persbabu_pers Posts: 2Member
    : : Is there any way to control the back button (in internet explorer) via asp.net.... Help
    : :
    :
    : Hi,
    : Unfortunatly there is no direct way of doing this. I generally use an alternative way of disabling back button.
    :
    : Expire the response immediately, so that user cannot use browser back/forward
    :
    : Response.Expires = -1
    : Response.ExpiresAbsolute = Today.AddDays(-1)
    : Response.AddHeader("pragma", "no-cache")
    : Response.AddHeader("cache-control", "private")
    : Response.CacheControl = "no-cache"
    :
    : I hope this should help.
    :
    hello,

    i find difficulty in implementing ur code. can u eloborate, how to use & where to use

    Babu
Sign In or Register to comment.