Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: capture url from address bar


Message #1 by "taherm@f... on Fri, 31 Aug 2001 15:22:09
dear freinds

i want to capture the URL from my address bar and store it in a url. how 

can i do this in my asp page. 

i want to do this so that i can link it to my "continue shopping" button 

on my shopping cart totake the user back from where he/she came.

i could do this by using history method in javascript but that doent solve 

my purpose.



plz could any help me..
Message #2 by "Monique Angelich" <mangelich@m...> on Fri, 31 Aug 2001 10:53:33 -0400
what about the requesting url and storing it in the url after a ?url=[the

url you just grabbed]



Then in other page, use request.querystring to grab that url for directing

back to the first page?

----- Original Message -----

From: <taherm@f...>

To: "ASP Web HowTo" <asp_web_howto@p...>

Sent: Friday, August 31, 2001 3:22 PM

Subject: [asp_web_howto] capture url from address bar





> dear freinds

> i want to capture the URL from my address bar and store it in a url. how

> can i do this in my asp page.

> i want to do this so that i can link it to my "continue shopping" button

> on my shopping cart totake the user back from where he/she came.

> i could do this by using history method in javascript but that doent solve

> my purpose.

>

> plz could any help me..
Message #3 by Sam Clohesy <sam@e...> on Fri, 31 Aug 2001 15:57:21 +0100
Can't you do

Request.ServerVariables ("SCRIPT_NAME") or ("URL) I can't remember which



Thanks



-----Original Message-----

From: taherm@f...

[mailto:taherm@f...]

Sent: 31 August 2001 16:22

To: ASP Web HowTo

Subject: [asp_web_howto] capture url from address bar





dear freinds

i want to capture the URL from my address bar and store it in a url. how 

can i do this in my asp page. 

i want to do this so that i can link it to my "continue shopping" button 

on my shopping cart totake the user back from where he/she came.

i could do this by using history method in javascript but that doent solve 

my purpose.



plz could any help me..
Message #4 by "Craig Flannigan" <ckf@k...> on Fri, 31 Aug 2001 16:01:19 +0100
The best way to do this, is to capture the page they just came from, rather

than the page they are on.



The shopping cart page can use:



	<%  =Request.ServerVariables("HTTP_REFERER") %>



This will capture the page that the user was on just before they arrived at

the cart.



Hope this helps,

Craig.



-----Original Message-----

From: Sam Clohesy [mailto:sam@e...]

Sent: Friday 31 August 2001 15:57

To: ASP Web HowTo

Subject: [asp_web_howto] RE: capture url from address bar





Can't you do

Request.ServerVariables ("SCRIPT_NAME") or ("URL) I can't remember which



Thanks



-----Original Message-----

From: taherm@f...

[mailto:taherm@f...]

Sent: 31 August 2001 16:22

To: ASP Web HowTo

Subject: [asp_web_howto] capture url from address bar





dear freinds

i want to capture the URL from my address bar and store it in a url. how

can i do this in my asp page.

i want to do this so that i can link it to my "continue shopping" button

on my shopping cart totake the user back from where he/she came.

i could do this by using history method in javascript but that doent solve

my purpose.



plz could any help me..



Message #5 by Kyle Burns <kburns@c...> on Fri, 31 Aug 2001 12:47:17 -0500
You'll need to do this by either appending information about where the user

is coming from to the querystring(ugly) or tracking this information in

hidden fields on your forms.



=================================

Kyle M. Burns, MCSD

ECommerce Technology Manager





-----Original Message-----

From: taherm@f...

[mailto:taherm@f...]

Sent: Friday, August 31, 2001 10:22 AM

To: ASP Web HowTo

Subject: [asp_web_howto] capture url from address bar





dear freinds

i want to capture the URL from my address bar and store it in a url. how 

can i do this in my asp page. 

i want to do this so that i can link it to my "continue shopping" button 

on my shopping cart totake the user back from where he/she came.

i could do this by using history method in javascript but that doent solve 

my purpose.



plz could any help me..

Message #6 by Kyle Burns <kburns@c...> on Fri, 31 Aug 2001 13:16:12 -0500
Unfortunately, you can't always depend on HTTP_REFERER.  I've seen many

instances where this is not passed.  Also, I don't believe that this would

include querystring information if the user is coming from a dynamically

generated page.



=================================

Kyle M. Burns, MCSD

ECommerce Technology Manager





 



-----Original Message-----

From: Craig Flannigan [mailto:ckf@k...]

Sent: Friday, August 31, 2001 10:01 AM

To: ASP Web HowTo

Subject: [asp_web_howto] RE: capture url from address bar





The best way to do this, is to capture the page they just came from, rather

than the page they are on.



The shopping cart page can use:



	<%  =Request.ServerVariables("HTTP_REFERER") %>



This will capture the page that the user was on just before they arrived at

the cart.



Hope this helps,

Craig.



-----Original Message-----

From: Sam Clohesy [mailto:sam@e...]

Sent: Friday 31 August 2001 15:57

To: ASP Web HowTo

Subject: [asp_web_howto] RE: capture url from address bar





Can't you do

Request.ServerVariables ("SCRIPT_NAME") or ("URL) I can't remember which



Thanks



-----Original Message-----

From: taherm@f...

[mailto:taherm@f...]

Sent: 31 August 2001 16:22

To: ASP Web HowTo

Subject: [asp_web_howto] capture url from address bar





dear freinds

i want to capture the URL from my address bar and store it in a url. how

can i do this in my asp page.

i want to do this so that i can link it to my "continue shopping" button

on my shopping cart totake the user back from where he/she came.

i could do this by using history method in javascript but that doent solve

my purpose.



plz could any help me..


  Return to Index