PDA

Click to See Complete Forum and Search --> : Redirect to Previous Page with ASP?


Berthil
Nov 13th, 2000, 05:06 PM
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

Serge
Nov 13th, 2000, 08:43 PM
You can have a little script to go back:

<SCRIPT Language=JavaScript>
window.history.back
</SCRIPT>

Nov 14th, 2000, 11:17 AM
I have had luck with the following:

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

Nov 14th, 2000, 11:52 AM
In ASP you could do something like:

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

Paul