Howdy, Stranger!

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

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

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.