472,340 Members | 1,865 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

HELP! -- previous page in VB and ASP 3.0

Hello all,

I'm writing you because I have a question for you all: how can I capture the
previous page from an ASP file?

I need to add the URL (with parameters if possible) of the previous page to
a table in SQL Server.

For example: the page that captures the info is anydomain.com/asppage.asp
and if the previous page in the browser history is
otherdomain.com/otherpage.asp, I need to be able to capture that information

If possible, of course...

Thanks in advance for your help and prompt response,
SB-R
Sep 24 '07 #1
4 2169
On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.comwrote:
Hello all,

I'm writing you because I have a question for you all: how can I capture the
previous page from an ASP file?

I need to add the URL (with parameters if possible) of the previous page to
a table in SQL Server.

For example: the page that captures the info is anydomain.com/asppage.asp
and if the previous page in the browser history is
otherdomain.com/otherpage.asp, I need to be able to capture that information

If possible, of course...

Thanks in advance for your help and prompt response,
SB-R
You can use Request.ServerVariables("HTTP_REFERER") to capture what
page sent you to the current page.

is this what you need?

regards
dave

Sep 24 '07 #2
"daddywhite" <da************@hotmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.comwrote:
Hello all,

I'm writing you because I have a question for you all: how can I capture
the
previous page from an ASP file?

I need to add the URL (with parameters if possible) of the previous page
to
a table in SQL Server.

For example: the page that captures the info is
anydomain.com/asppage.asp
and if the previous page in the browser history is
otherdomain.com/otherpage.asp, I need to be able to capture that
information

If possible, of course...

Thanks in advance for your help and prompt response,
SB-R

You can use Request.ServerVariables("HTTP_REFERER") to capture what
page sent you to the current page.
Be aware that some software blocks it.

http://karmak.org/2004/reftest/fix
Sep 24 '07 #3
Hello Dave,

That variable doesn't return any values

BTW, I'm using Win2003 SP1 IIS 6.0

"daddywhite" <da************@hotmail.comwrote in message
news:11*********************@g4g2000hsf.googlegrou ps.com...
On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.comwrote:
>Hello all,

I'm writing you because I have a question for you all: how can I capture
the
previous page from an ASP file?

I need to add the URL (with parameters if possible) of the previous page
to
a table in SQL Server.

For example: the page that captures the info is anydomain.com/asppage.asp
and if the previous page in the browser history is
otherdomain.com/otherpage.asp, I need to be able to capture that
information

If possible, of course...

Thanks in advance for your help and prompt response,
SB-R

You can use Request.ServerVariables("HTTP_REFERER") to capture what
page sent you to the current page.

is this what you need?

regards
dave

Sep 24 '07 #4
It will contain data if the browser sends it - this is done is the browser
follows a link to your page so long as intervening software doesn't strip it
out. If someone just types your page URL into their browser then you can't
obtain the value of the previous URL (at least as far as I know, although it
may be possible with some client side scripting but would require user
intervention, if it was automatic then it'd be a security risk to the
browser.

Dan

segis wrote on Mon, 24 Sep 2007 17:23:07 -0400:
Hello Dave,
That variable doesn't return any values
BTW, I'm using Win2003 SP1 IIS 6.0
"daddywhite" <da************@hotmail.comwrote in message news:11*********************@g4g2000hsf.googlegrou ps.com...
>On 24 Sep, 20:09, "segis bata" <segisb...@hotmail.comwrote:
>>Hello all,
>>I'm writing you because I have a question for you all: how can I
capture the previous page from an ASP file?
>>I need to add the URL (with parameters if possible) of the previous
page to a table in SQL Server.
>>For example: the page that captures the info is
anydomain.com/asppage.asp and if the previous page in the browser
history is otherdomain.com/otherpage.asp, I need to be able to
capture that information
>>If possible, of course...
>>Thanks in advance for your help and prompt response,
SB-R
>You can use Request.ServerVariables("HTTP_REFERER") to capture what
page sent you to the current page.
>is this what you need?
>regards dave


Sep 28 '07 #5

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

Similar topics

21
by: Dave | last post by:
After following Microsofts admonition to reformat my system before doing a final compilation of my app I got many warnings/errors upon compiling an...
9
by: Tom | last post by:
A question for gui application programmers. . . I 've got some GUI programs, written in Python/wxPython, and I've got a help button and a help menu...
2
by: Sudheer Kareem | last post by:
Dear All Please tell me how to assosiate help files with my Vb.net Project. Regards Sudheer
6
by: wukexin | last post by:
Help me, good men. I find mang books that introduce bit "mang header files",they talk too bit,in fact it is my too fool, I don't learn it, I have...
6
by: d.warnermurray | last post by:
I am doing a project for school that involves creating help files for a html authoring tool. If you could help me with answers to some questions it...
3
by: Colin J. Williams | last post by:
Python advertises some basic service: C:\Python24>python Python 2.4.1 (#65, Mar 30 2005, 09:13:57) on win32 Type "help", "copyright",...
7
by: Corepaul | last post by:
Missing Help Files When I enter "recordset" as the keyword and search the Visual Basic Help index, I get many topics of interest in the resulting...
8
by: Mark | last post by:
I have loaded Visual Studio .net on my home computer and my laptop, but my home computer has an abbreviated help screen not 2% of the help on my...
1
by: trunxnirvana007 | last post by:
'UPGRADE_WARNING: Array has a new behavior. Click for more:...
0
by: hitencontractor | last post by:
I am working on .NET Version 2003 making an SDI application that calls MS Excel 2003. I added a menu item called "MyApp Help" in the end of the menu...
0
better678
by: better678 | last post by:
Question: Discuss your understanding of the Java platform. Is the statement "Java is interpreted" correct? Answer: Java is an object-oriented...
0
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: CD Tom | last post by:
This only shows up in access runtime. When a user select a report from my report menu when they close the report they get a menu I've called Add-ins...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: AndyPSV | last post by:
HOW CAN I CREATE AN AI with an .executable file that would suck all files in the folder and on my computerHOW CAN I CREATE AN AI with an .executable...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...

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.