473,396 Members | 2,055 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,396 software developers and data experts.

Request.UrlReferrer doesn't work

do you have any ideas why this code doesn't work?
i have 2 pages in 2 different domains: a.html; b.aspx

a.html (i make a redirect)
_____
<script language='JavaScript1.2'>
function redirect(){window.location='http://www.xx.it/b.aspx';}
</script>
<BODY onload='redirect()'>
</body>
_____

b.aspx (i check to come from a.html)
_____
r1: Dim p As Uri = Request.UrlReferrer
r2: Dim ps As String = p.AbsoluteUri.ToString()
_____
i receive an error in row2 that say that the istance is not an object
(translating from italian (-; )
with debug i can see that already in row1 it doesn't find anything and "p"
stay ampty.

anybody knows what can i do?
i can't change the page a.html
thanks
franz from italy (again (-; )
Nov 18 '05 #1
1 2332
-=franz=- wrote:
do you have any ideas why this code doesn't work?
i have 2 pages in 2 different domains: a.html; b.aspx

a.html (i make a redirect)
_____
<script language='JavaScript1.2'>
function redirect(){window.location='http://www.xx.it/b.aspx';}
</script>
<BODY onload='redirect()'>
</body>
_____

b.aspx (i check to come from a.html)
_____
r1: Dim p As Uri = Request.UrlReferrer
r2: Dim ps As String = p.AbsoluteUri.ToString()
_____
i receive an error in row2 that say that the istance is not an object
(translating from italian (-; )
with debug i can see that already in row1 it doesn't find anything
and "p" stay ampty.

anybody knows what can i do?


There's no guarantee that you'll receive a referrer header, and upstream
proxies could change its values anyway.

Cheers,

--
Joerg Jooss
jo*********@gmx.net
Nov 18 '05 #2

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

Similar topics

0
by: mews.microsoft.com | last post by:
My ASP.NET pages record the referal url for each current page into session. This is then being used by the cancel button to go back to the calling page. Page Navigation is achieved thru'...
4
by: Harley | last post by:
i have found a problem when using Request.UrlReferrer. if i call the page using a javascript function, the referrer is null... i need to call a page and open it on a specific browser size, with no...
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...
3
by: Stephane | last post by:
Hi, I have installed an image on some html page. This image is sent from an asp.net page like this: <img src="image.aspx"> I have a problem with few computers. In my application, I check...
2
by: Jaikanth Sithambaranathan via .NET 247 | last post by:
The problem is in the result page in which i can scroll throughthe contents of the result set 100 at a time. I call the resultpage from a filter page where i accept filter on results to bedisplayed....
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...
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...
4
by: John A Grandy | last post by:
How to determine if a request originated from a link click , or otherwise ( such as pasting the url the browser ). This would seem to work ... if (Request.Url.Host == Request.UrlReferrer.Host)...
0
AmirGhaffary
by: AmirGhaffary | last post by:
want to insert user Url into data base I work with ASP.NET and i used this code in Session_Start at Global.asax Dim Ref As String If Not Request.UrlReferrer Is Nothing Then ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.