Request.UrlReferrer returning null with IE 8

好久不见. 提交于 2019-12-13 16:13:20

问题


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") > -1)
    {
        // ------
    }
}

Why is this happening?

来源:https://stackoverflow.com/questions/6307527/request-urlreferrer-returning-null-with-ie-8

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!