473,395 Members | 1,762 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,395 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 25451
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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,...
0
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...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
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...

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.