Disable Back button for a particular inputs from user

Discussion in 'ASP .Net' started by zyaam, Dec 29, 2004.

  1. zyaam

    zyaam Guest

    hi

    If a user logs into an aspx applicaiton and in the same browser goes
    to some other site say google.com and when he presses back button, he
    is able to come back to the application since the session values are
    still alive. How to make redirect the user to another page if he
    tries to enter into the application as in the above manner.
    I donot want the back button to be
    disabled.

    bye

    *-----------------------*
    Posted at:
    www.GroupSrv.com
    *-----------------------*
    zyaam, Dec 29, 2004
    #1
    1. Advertising

  2. zyaam

    Vaibhav Guest

    one way of doing it
    http://www.4guysfromrolla.com/webtech/100604-1.shtml

    "zyaam" <-spam.invalid> wrote in message
    news:...
    > hi
    >
    > If a user logs into an aspx applicaiton and in the same browser goes
    > to some other site say google.com and when he presses back button, he
    > is able to come back to the application since the session values are
    > still alive. How to make redirect the user to another page if he
    > tries to enter into the application as in the above manner.
    > I donot want the back button to be
    > disabled.
    >
    > bye
    >
    > *-----------------------*
    > Posted at:
    > www.GroupSrv.com
    > *-----------------------*
    Vaibhav, Dec 29, 2004
    #2
    1. Advertising

  3. To prevent page caching, use this code:

    Response.Expires = 0

    Response.Cache.SetNoStore()

    Response.AppendHeader("Pragma", "no-cache")

    --

    I hope this helps,

    Steve C. Orr, MCSD, MVP

    http://Steve.Orr.net



    "zyaam" <-spam.invalid> wrote in message
    news:...
    > hi
    >
    > If a user logs into an aspx applicaiton and in the same browser goes
    > to some other site say google.com and when he presses back button, he
    > is able to come back to the application since the session values are
    > still alive. How to make redirect the user to another page if he
    > tries to enter into the application as in the above manner.
    > I donot want the back button to be
    > disabled.
    >
    > bye
    >
    > *-----------------------*
    > Posted at:
    > www.GroupSrv.com
    > *-----------------------*
    Steve C. Orr [MVP, MCSD], Dec 29, 2004
    #3
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. belgie

    back button - disable

    belgie, Jul 25, 2003, in forum: ASP .Net
    Replies:
    4
    Views:
    696
    Scott M.
    Jul 26, 2003
  2. Shalva

    Disable back button

    Shalva, Jan 15, 2004, in forum: ASP .Net
    Replies:
    1
    Views:
    606
    Chris Jackson
    Jan 15, 2004
  3. sylvia sil
    Replies:
    1
    Views:
    600
    Curt_C [MVP]
    Dec 29, 2004
  4. Martin
    Replies:
    7
    Views:
    502
    Denis McMahon
    May 7, 2011
  5. coolsti
    Replies:
    4
    Views:
    202
    coolsti
    May 20, 2005
Loading...

Share This Page