Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Redirect.Response question

Status
Not open for further replies.

jldavis5

IS-IT--Management
Jan 22, 2002
9
US
Is there a way to redirect.response to browser history say 2 pages back? What I'm trying to accomplish is when a user decides to cancel a out of editing a record, to send him/her to start page of the record without having to pass the variable since the record has not changed so there would be no reason to show a refreshed record(if that makes any since).
 
I know a way in Javascript go.history(-2) if I am right - check the syntax though! Uhgar
-- Alcohol and Calculus never mix! Do not drink and derive! --
 
Response.redirect is server side script and would be done before the page that it is on is viewed. You want to use client side script. IE Javascript
 
Use uhgar's option. Syntax is:

<A HREF=&quot;JAVASCRIPT:history.go(-2)&quot;>Go Back 2 Pages</A>

Hope this helps. -Ovatvvon :-Q
 
<A HREF=&quot;JAVASCRIPT:history.back(-2)&quot;>Back 2 Pages</a><BR> will work too. -Ovatvvon :-Q
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top