473,320 Members | 1,950 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

How to retrieve current page url?

Hi all,

How can I retrieve the current page url(and parameters/arguments) using ASP
code?

The current page is an asp search results page so the url includes the page
name and the criterion(sorry I don't know what they're called) I had the
'post' method tag on the end.

I need to get it and store it so I have an easy way of getting back to this
page at a click of a button a few pages down the track. I've tried using
location and history but I'd like to manage it myself.

Any ideas?

Regards

Penny.
Jul 22 '05 #1
4 6592
Gazing into my crystal ball I observed "Penny" <pe***@spampolice.com>
writing in news:42******@funnel.arach.net.au:
Hi all,

How can I retrieve the current page url(and parameters/arguments) using
ASP code?

The current page is an asp search results page so the url includes the
page name and the criterion(sorry I don't know what they're called) I
had the 'post' method tag on the end.

I need to get it and store it so I have an easy way of getting back to
this page at a click of a button a few pages down the track. I've tried
using location and history but I'd like to manage it myself.

Any ideas?

Regards

Penny.


Request.ServerVariables("SCRIPT_NAME")

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #2

Thispage = Request.ServerVariables("script_name") & "?" &
Request.Querystring & Request.Form

"Adrienne" <ar********@sbcglobal.net> wrote in message
news:Xn****************************@207.115.63.158 ...
Gazing into my crystal ball I observed "Penny" <pe***@spampolice.com>
writing in news:42******@funnel.arach.net.au:
Hi all,

How can I retrieve the current page url(and parameters/arguments) using
ASP code?

The current page is an asp search results page so the url includes the
page name and the criterion(sorry I don't know what they're called) I
had the 'post' method tag on the end.

I need to get it and store it so I have an easy way of getting back to
this page at a click of a button a few pages down the track. I've tried
using location and history but I'd like to manage it myself.

Any ideas?

Regards

Penny.


Request.ServerVariables("SCRIPT_NAME")

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share

Jul 22 '05 #3
Thanks guys!!

It all seems so simple to you.

It's not a very intuitive name - ("script_name") - is it!

Regards

Penny
Jul 22 '05 #4
Gazing into my crystal ball I observed "Penny" <pe***@spampolice.com>
writing in news:42******@funnel.arach.net.au:
Thanks guys!!

It all seems so simple to you.

It's not a very intuitive name - ("script_name") - is it!

Regards

Penny


Please understand that this method does not always work. If the user has
referrer logging disabled, then that value will be blank when going to
another page.

From your original post, although you wanted to know the variable for
THIS page, I think you really may be looking for Request.ServerVariables
("HTTP_REFERER") [yes, it's spelled right, apparently it was misspelled a
long time ago, and it has stayed that way], but again, if the user has
referrer logging disabled, it will not work. Also, if someone comes from
another site directly to that page, the HTTP_REFERER will be for the
other site.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Carlos Gomez | last post by:
Question 1 Is there a way to execute a page, retrieve some information out of it and then present it in my page? example: The user access MyPage.asp MyPage.asp <somehow, internally> calls...
1
by: Georgios Zakitraxis | last post by:
Hi, i have frames. I want to retrieve from a page in frame 1 the pagename of the page in frame 2 That should be possible with javascript, but I don't know how to. Suggestions, Hints, did...
6
by: David Bowey | last post by:
Hi There! I'm writing a custom HttpHandler to create watermarks on my PNG images of my website. So typically, a PNG image is linked in an ASPX page as follows... <img src="images/test.png"...
2
by: Kash | last post by:
Hi everybody I have a session on my vb.net web applications first page to store an one dimensional array: dim myAry(2) As String myAry(0) = xVal myAry(1) = yVal...
1
by: GS | last post by:
Hi, I have GridView on my page. How do I retrieve items in current page on GridView? It works only with first page but when I click on next page in GridView it's collection of DataKeys for...
1
by: Lyners | last post by:
What I need - To retrieve the server name that the ASP application is running on. Why - Our current intranet is on a network where we have users that are on a domain and some that are not. Using...
13
by: kev | last post by:
Hi all, I have created a database for equipments. I have a form to register the equipment meaning filling in all the particulars (ID, serial, type, location etc). I have two buttons at the end...
5
by: =?Utf-8?B?QXhlbCBEYWhtZW4=?= | last post by:
Hi, I've created a class library assembly containing several string resource files, like: - TableColumns.resx - TableColumns.de.resx - General.resx - General.de.resx
7
by: =?Utf-8?B?UVNJRGV2ZWxvcGVy?= | last post by:
I have a C# logging assembly with a static constructor and methods that is called from another C# Assembly that is used as a COM interface for a VB6 Application. Ideally I need to build a file...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.