G
Guest
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 for the
referrer which is, in this case, the html page containing the image. My code
goes like this:
if (Request.UrlReferrer != null)
{
string ref = Request.UrlReferrer.Host + Request.UrlReferrer.AbsolutePath;
}
else
{
error = "There's no referer";
}
Why it's working for almost every workstation, but on few, it's says that
there's no referrer or Request.UrlReferrer is null. I need this to send back
to right image to the client.
Thanks for any help.
Stephane
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 for the
referrer which is, in this case, the html page containing the image. My code
goes like this:
if (Request.UrlReferrer != null)
{
string ref = Request.UrlReferrer.Host + Request.UrlReferrer.AbsolutePath;
}
else
{
error = "There's no referer";
}
Why it's working for almost every workstation, but on few, it's says that
there's no referrer or Request.UrlReferrer is null. I need this to send back
to right image to the client.
Thanks for any help.
Stephane