Results 1 to 4 of 4

Thread: Redirect to Previous Page with ASP?

  1. #1

    Thread Starter
    Member
    Join Date
    Oct 2000
    Location
    Netherlands
    Posts
    54

    Question

    I want to redirect to the previously requested page with ASP and not to a specific page. Is there APS code to do that?

    Ofcourse I could send this as a querystring but the above would be easier.

    Thanks
    A mind is like a parachute, it has to open to let it work
    www.2beesoft.com for Icon Manager with over 20.000 free icons
    VB6 Ent. SP4, ASP, W2000/W98

  2. #2
    Serge's Avatar
    Join Date
    Feb 1999
    Location
    Scottsdale, Arizona, USA
    Posts
    2,744
    You can have a little script to go back:
    Code:
    <SCRIPT Language=JavaScript>
        window.history.back
    </SCRIPT>

  3. #3
    Guest
    I have had luck with the following:

    <input type="button" name="Back" value="Back" onclick="history.go(-1)">

  4. #4
    Guest
    In ASP you could do something like:

    Response.Write "<P><A HREF=""" & Request.ServerVariables("HTTP_REFERER") & """>Link to previous page</A></P>"

    Paul

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width