Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_databases thread: Javascript:history.go(-1)


Message #1 by "Chirag Shah" <chiragiit@y...> on Mon, 8 Jul 2002 14:54:55
Is there any ASP equivalent of  javascript:history.go(-1) (sending user to 
the previous page) Thanks in advance..
Message #2 by Mark Eckeard <meckeard2000@y...> on Mon, 8 Jul 2002 07:01:54 -0700 (PDT)
Try:

response.redirect("previouspage.asp").

I think this is the only thing that will work in ASP.

Mark.
--- Chirag Shah <chiragiit@y...> wrote:
> 
> Is there any ASP equivalent of 
> javascript:history.go(-1) (sending user to 
> the previous page) Thanks in advance..


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com
Message #3 by "Jonathan Charlton" <jcharlton@e...> on Mon, 8 Jul 2002 15:17:29 +0100
If not I think there is a server variable that stores the refer's URL. Once
you know what the variable is called which I cannot remember for the life of
me then you can do a
Response.Redirect(Request.Request.ServerVariables("VARIABLE NAME HERE"))

-----Original Message-----
From: Mark Eckeard [mailto:meckeard2000@y...]
Sent: 08 July 2002 15:02
To: ASP Databases
Subject: [asp_databases] Re: Javascript:history.go(-1)


Try:

response.redirect("previouspage.asp").

I think this is the only thing that will work in ASP.

Mark.
--- Chirag Shah <chiragiit@y...> wrote:
>
> Is there any ASP equivalent of
> javascript:history.go(-1) (sending user to
> the previous page) Thanks in advance..


__________________________________________________
Do You Yahoo!?
Sign up for SBC Yahoo! Dial - First Month Free
http://sbc.yahoo.com



Message #4 by "Mark Anderson" <marke.anderson@b...> on Mon, 8 Jul 2002 15:31:32 +0100
You can use Request.ServerVariables("SCRIPT_NAME") This gives the current
pages name and you can then pass it on as a hidden variable to the next
page.


Mark Anderson
01202 775483
07802 404838 mob
Web Development and database design
mailto:mark@a...
http://www.anderson.uk.com


-----Original Message-----
From: Chirag Shah [mailto:chiragiit@y...]
Sent: 08 July 2002 14:55
To: ASP Databases
Subject: [asp_databases] Javascript:history.go(-1)



Is there any ASP equivalent of  javascript:history.go(-1) (sending user to
the previous page) Thanks in advance..

Message #5 by "Kim Iwan Hansen" <kimiwan@k...> on Mon, 8 Jul 2002 19:54:31 +0200
The one you're thinking of is HTTP_REFERER

Request.ServerVariables("HTTP_REFERER")

-Kim

> -----Original Message-----
> From: Jonathan Charlton [mailto:jcharlton@e...]
> Sent: 8. juli 2002 16:17
> To: ASP Databases
> Subject: [asp_databases] Re: Javascript:history.go(-1)
> 
> 
> If not I think there is a server variable that stores the refer's 
> URL. Once
> you know what the variable is called which I cannot remember for 
> the life of
> me then you can do a
> Response.Redirect(Request.Request.ServerVariables("VARIABLE NAME HERE"))
> 
> -----Original Message-----
> From: Mark Eckeard [mailto:meckeard2000@y...]
> Sent: 08 July 2002 15:02
> To: ASP Databases
> Subject: [asp_databases] Re: Javascript:history.go(-1)
> 
> 
> Try:
> 
> response.redirect("previouspage.asp").
> 
> I think this is the only thing that will work in ASP.
> 
> Mark.
> --- Chirag Shah <chiragiit@y...> wrote:
> >
> > Is there any ASP equivalent of
> > javascript:history.go(-1) (sending user to
> > the previous page) Thanks in advance..
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Sign up for SBC Yahoo! Dial - First Month Free
> http://sbc.yahoo.com
> 
> 
> 
> 

  Return to Index