Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Get referrer URL

Reply
Thread Tools

Get referrer URL

 
 
Harley
Guest
Posts: n/a
 
      07-24-2003
I'm having problems getting the referrer URL in a VB.NET ASP.NET page.

A simple piece of code like this:

if not Request.URLReferrer is nothing then
_REFUrl = Request.URLReferrer.Host.ToString
end if

It is not working... Request.URLReferrer always returns nothing. The If...Then is to avoid a runtime error if you call the page directly, in that case there is no referrer and its ok for it to be blank....
but even when I link to the page from another page the referrer is blank.. it only gets a value when the page is posted back!

any idea? a bug? or what am I doing wrong?

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Emulating Referrer URL? =?Utf-8?B?QmVuIEZpZGdl?= ASP .Net 4 12-15-2005 10:44 AM
How to get referrer page with in JSP Steven Java 4 02-04-2005 05:15 PM
redirect URL's, return URL's, and URL Parameters Jon paugh ASP .Net 1 07-10-2004 05:29 AM
Re: Url.Referrer is NULL Kevin Spencer ASP .Net 1 06-03-2004 05:11 PM
Re: Get referrer URL Harley ASP .Net 0 07-26-2003 04:00 AM



Advertisments