Imitate "Back Button" action

Discussion in 'Microsoft Dot NET' started by Guest, Dec 29, 2004.

  1. Guest

    Guest Guest

    Does anyone know the command to "imitate" the "Back" button on a browser
    in .NET. I have looked in the Redirect but can't seem to find anything. I
    can re-direct to a specific page but my users come from differnet places so
    would like to put a "Back" button on the page.
    Thanks.
    Tom Youngquist
     
    Guest, Dec 29, 2004
    #1
    1. Advertisements

  2. > Does anyone know the command to "imitate" the "Back" button on a browser
    > in .NET.

    This is best done with client side script. The following HTML input button
    has the same behavior as the back button.

    <INPUT type="button" value="Go back!" onclick="history.back();">

    Anders Norås
    http://dotnetjunkies.com/weblog/anoras
     
    Anders Norås [MCAD], Dec 29, 2004
    #2
    1. Advertisements

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. Margaret

    Open in New Window without Back Button etc

    Margaret, Dec 16, 2003, in forum: Microsoft Dot NET
    Replies:
    2
    Views:
    521
    margaret
    Dec 17, 2003
  2. davidw
    Replies:
    1
    Views:
    218
    Stephen Witter
    May 27, 2004
  3. Guest

    Back button in Internet Explorer.

    Guest, Aug 7, 2004, in forum: Microsoft Dot NET
    Replies:
    3
    Views:
    312
    Guest
    Aug 10, 2004
  4. Guest

    How to reload on back button.

    Guest, Aug 28, 2004, in forum: Microsoft Dot NET
    Replies:
    3
    Views:
    247
    Cor Ligthert
    Aug 29, 2004
  5. Guest

    Back button action and requested logon page

    Guest, Dec 21, 2004, in forum: Microsoft Dot NET
    Replies:
    1
    Views:
    174
    Guest
    Dec 21, 2004
  6. Joe Abou Jaoude

    is there a problem with the browser back button in ASP.Net ?

    Joe Abou Jaoude, Jan 28, 2005, in forum: Microsoft Dot NET
    Replies:
    3
    Views:
    278
    Patrice
    Feb 16, 2005
  7. Guest

    How to disable IE Back button - Help

    Guest, Feb 3, 2005, in forum: Microsoft Dot NET
    Replies:
    2
    Views:
    201
    Patrice
    Feb 3, 2005
  8. Force Page Expiry (Back Button Issue)

    , May 5, 2005, in forum: Microsoft Dot NET
    Replies:
    0
    Views:
    177
Loading...