Request.UrlReferrer Is Null IN IE 6.0 when location.href(Javascript) is used to redirect

S

saden_paki

I am having this problem, that Request.UrlReferrer comes out to be
Nothing, when a user hits a button on a html page which only have this
button, on this button's onClick javascript event I have used
location.href to redirect the page to an aspx page, there I try to
extract the Request.UrlReferrer which comes out to be null..

When I used the mozilla based(firefox) I was able to get the
Request.UrlReferrer info.

is there anyway that I can get that info in IE, my problem is that I
can't replace the location.href way of redirection for the html page...

I know someone from you guys knows the solution... Just in search of
that guy... :) please help!
 
G

Guest

Hi Saden, I think that location.href is the eqivalent of the user typing the
url into the browser, in which case there is no referrer. You may need to use
window.navigate(url) (but said that you need to use location.href) perhaps
somebody else knows better? HTH jd
 
S

saden_paki

when used firefox, I got the Request.UrReferrer appropriate value,
thats why I posted it as a question, cant get the value for IE....
 
G

Guest

could you pass the referring url in the querystring e.g location.href =
'mypage.aspx?referrer=referringpage.aspx'
 
B

Bruce Barker

this is a unreliable approach as many proxy/firewall servers strip this
field from the request for security concerns.

-- bruce (sqlwork.com)
 
S

saden_paki

I may try this but I have got to paas the referrer along with the
querystrings, so is that achievable, i mean sending the whole url along
with its own querystring in another querystring. thanks
 
S

saden_paki

I am devloping an application that will be used over intranet, so I
believe that is not a real issue here...

Is this an IE bug, since I have been able to get things running
smoothly in FireFox...
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top