473,327 Members | 1,920 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,327 software developers and data experts.

UrlReferrer issue

Hi all!

I am developing an intranet app and have a problem with the
Request.UrlReferrer object.

I use it to keep a "linkstack" of all pages visited on the app to let the
user surf thru pages (the IE toolbar is not visible).

I tested it ok on intranet and internet with win2k clients. The problem
which happens with XP clients is that SOMETIMES the
Request.UrlReferrer.AbsoluteUri is nothing, leaving the site clueless on
what to put on the linkstack... Is this a bug, or sometimes UrlReferrer CAN
be nothing (when?). Is there any other way i can track referrer (ie
previous) page visited?

Thanx to anyone will answer

Bye

Yoyo
Nov 17 '05 #1
2 25441
Hi

There is no guarantee of referrer
http://msdn.microsoft.com/library/de...s/referrer.asp
also using script to set location will kill referrer

Are you only tracking pages within system... You could use
Request.ServerVariables["SCRIPT_NAME"].toString();
to track user...

--
Best Regards
Vidar Petursson
==============================
Microsoft Internet Client & Controls MVP
==============================
"Yoyo" <x@x.com> wrote in message
news:mG*********************@news2.tin.it...
Hi all!

I am developing an intranet app and have a problem with the
Request.UrlReferrer object.

I use it to keep a "linkstack" of all pages visited on the app to let the
user surf thru pages (the IE toolbar is not visible).

I tested it ok on intranet and internet with win2k clients. The problem
which happens with XP clients is that SOMETIMES the
Request.UrlReferrer.AbsoluteUri is nothing, leaving the site clueless on
what to put on the linkstack... Is this a bug, or sometimes UrlReferrer CAN be nothing (when?). Is there any other way i can track referrer (ie
previous) page visited?

Thanx to anyone will answer

Bye

Yoyo

Nov 17 '05 #2
Thanx to both for answering,

I solved my problem using

ServerVariables("SCRIPT_NAME") for the page and
ServerVariables("QUERY_STRING") for the parameters sent.

Bye

Yoyo
Nov 17 '05 #3

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

Similar topics

0
by: Jiong Feng | last post by:
Hi, Here is my problem: I created a try.htm on my server, which contains a link to the default.aspx page. if I use http://localhost/try.htm, and click the link, then in default.aspx, I could...
7
by: Ivan Demkovitch | last post by:
Hi! Here is what I'm doing: I have Login.aspx with code to do forms authentification and I have this line at the end: Response.Redirect(Request.UrlReferrer.ToString()); I have other...
1
by: tony collier | last post by:
Hi I have this declaration on most of my pages for the UrlReferrer. String referrer=Request.UrlReferrer.ToString(); This works fine apart from when the user first visits the site on the...
0
by: JohnZing | last post by:
hi I made a simple web page Stats.aspx To get visitiors information for all my websites. In my websites i use <img src="http://stats.xxxxxxx.com/stats.aspx?site=yyyy> This works ok. The...
1
by: TJS | last post by:
This code runs fine on my local machine but fails on the webhost server. Any ideas why ??? Exception Details: System.NullReferenceException: Object reference not set to an instance of an...
7
by: Aaron Prohaska | last post by:
Has anyone had any experience with Nortan Antivirus causing problems when trying to use Request.UrlReferrer? I am seeing in the Nortan Antivirus log that its blocking my page from loading because...
4
by: Logician | last post by:
Objective To get linking domain on an affiliate program, ie linking site--->my site-->write cookie-->track visitor-->report to affiliate Current from linking site...
2
by: deepak.bhardwaj | last post by:
Hi, I have implemented the IHttpHandler interface for generating images and writing them to response stream in binary format. I use an IHttpHandlerFactory to instantiate that handler. A .aspx...
0
by: superman | last post by:
Hi, I have implemented the IHttpHandler interface for generating images and writing them to response stream in binary format. I use an IHttpHandlerFactory to instantiate that handler. A .aspx...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.