开发者

Request.UrlReferrer returning null with IE 8

开发者 https://www.devze.com 2023-03-12 05:07 出处:网络
I\'m trying to access the URL in Request.UrlReferrer. It works fine in Firefox and returns me the correct value. But, when I try and access it when debugging from Internet Explorer, it returns null.

I'm trying to access the URL in Request.UrlReferrer. It works fine in Firefox and returns me the correct value. But, when I try and access it when debugging from Internet Explorer, it returns null.

My code:

if (Request.UrlReferrer != null)
{
    if (Request.UrlReferrer.ToString().IndexOf("AspxPage.aspx") &g开发者_Python百科t; -1)
    {
        // ------
    }
}

Why is this happening?

0

精彩评论

暂无评论...
验证码 换一张
取 消