Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asp_web_howto thread: RE: ASP window location


Message #1 by "TomMallard" <mallard@s...> on Wed, 19 Jun 2002 22:25:11 -0700
request.servervariables("HTTP_REFERER") should do since you are calling page
to page.

tom mallard
seattle

-----Original Message-----
From: M Griffie [mailto:nexus@p...]
Sent: Thursday, June 20, 2002 6:04 AM
To: ASP Web HowTo
Subject: [asp_web_howto] ASP window location


I am looking for a way to access data about the window location using
VBScript. I was wondering if there is a similar method as using the window
object in JavaScript. My exact problem is as follows:

I would like to have the following link change a Query String in the
address bar, while leaving the rest fo the URL the same:
Response.write("<a href=""/anydir/page.asp?nav=3"">")
Response.write("Click this to change the value</a>")
Response.write("<a href=""/anydir/page.asp?nav=1"">")
Response.write("Click this to change the value again</a>")
...
however, I do not want the link to be static "/anydir/page.asp"
but rather dynamic to the current page - i.e.
Response.write("<a href=""" & thecurrentdirectoryandpage & "?nav=2")
is there any way to do this?

---

Improve your web design skills with these new books from Glasshaus.

Usable Web Menus
http://www.amazon.com/exec/obidos/ASIN/1904151027/ref=nosim/theprogramme
r-20
Constructing Accessible Web Sites
http://www.amazon.com/exec/obidos/ASIN/1904151000/ref=nosim/theprogramme
r-20
Practical JavaScript for the Usable Web
http://www.amazon.com/exec/obidos/ASIN/1904151051/ref=nosim/theprogramme
r-20

Message #2 by "M Griffie" <nexus@p...> on Thu, 20 Jun 2002 06:04:28
I am looking for a way to access data about the window location using 
VBScript. I was wondering if there is a similar method as using the window 
object in JavaScript. My exact problem is as follows:

I would like to have the following link change a Query String in the 
address bar, while leaving the rest fo the URL the same:
Response.write("<a href=""/anydir/page.asp?nav=3"">")
Response.write("Click this to change the value</a>")
Response.write("<a href=""/anydir/page.asp?nav=1"">")
Response.write("Click this to change the value again</a>")
...
however, I do not want the link to be static "/anydir/page.asp"
but rather dynamic to the current page - i.e. 
Response.write("<a href=""" & thecurrentdirectoryandpage & "?nav=2")
is there any way to do this?

  Return to Index