473,769 Members | 6,286 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 6623
Gazing into my crystal ball I observed "Penny" <pe***@spampoli ce.com>
writing in news:42******@f unnel.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.ServerV ariables("SCRIP T_NAME")

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

Thispage = Request.ServerV ariables("scrip t_name") & "?" &
Request.Queryst ring & Request.Form

"Adrienne" <ar********@sbc global.net> wrote in message
news:Xn******** *************** *****@207.115.6 3.158...
Gazing into my crystal ball I observed "Penny" <pe***@spampoli ce.com>
writing in news:42******@f unnel.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.ServerV ariables("SCRIP T_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_nam e") - is it!

Regards

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

It all seems so simple to you.

It's not a very intuitive name - ("script_nam e") - 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.ServerV ariables
("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
2953
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 "http://www.weather.com/Local?ZIP=123456" Store it's contents into a variable. Retrieves the current temperature from that page and presents it as part of MyPage.asp This being done in the Server, without the user knowing what happened.
1
1270
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 anybody do that before?
6
5587
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" alt="testing" /> So I created an HttpHanlder to handle PNG images, have mapped the PNG extension in the IIS and also added the HttpModule section in the web.config file.
2
1216
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 HttpContext.Current.Session("mySession") = myAry so far so good. Then I want to retrieve data from this session on the next
1
1522
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 whatever reason do not change and stays the same as I did not use paging. Any ideas?
1
2286
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 I.P. addresses all the users can access the ASP pages. Using I.P. addresses, no one can use our .net pages because the header that is passed back from the server has extra security that require the end users to "log-in" to the server. This is...
13
3436
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 of the form which is submit and cancel. After i have clicked submit, the information is stored directly into my corresponding database table. My problem here is i need to retrieve back the information submitted to display all the data that the...
5
9447
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
2688
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 name based on the name of the VB6 application. A second choice would be a file name based on the # COM interface assembly. I have tried calling Assembly.GetCallingAssembly() but this fails when I use the VB6 client. Is there a way to get this...
0
9587
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9423
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10045
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
7406
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6672
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5298
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5447
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3958
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3561
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.