Is it possible to modify Request.ReferrerUrl using a URL argument?
I'm trying to get around an issue for a customer that have a site developed by a previous developer. The following is the line of code causing the issue:
arg开发者_高级运维s.AddParam("REFERER","",Request.UrlReferrer.ToString());
Therefore if you navigate directly to this page using the URL, it returns a null exception error. I know that to fix this the code should first be checking if UrlReferrer is set to null, however I am trying to find a way around this problem without having to change any source. Any help would be appreciated
No, there is no URL (Querystring) argument that can set the REFERER
http header to something. The only way you can do it is to link to the page from another one, and only navigate to it in that way.
精彩评论