Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/261.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# 没有在Edge、Chrome或Firefox中打开正确的URL,但它在IE11中打开_C#_Google Chrome_Firefox_Httpcontext - Fatal编程技术网

C# 没有在Edge、Chrome或Firefox中打开正确的URL,但它在IE11中打开

C# 没有在Edge、Chrome或Firefox中打开正确的URL,但它在IE11中打开,c#,google-chrome,firefox,httpcontext,C#,Google Chrome,Firefox,Httpcontext,我一直在尝试从Edge获取我的应用程序的Url,请求Firefox或Chrome,但到目前为止,在这方面运气不佳。 此应用程序与IE11完美配合,在此处发布了几段代码: ViewBag.RefURL = HttpContext.Request.Url.AbsoluteUri; if (HttpContext.Request.UrlReferrer != null && HttpContext.Request.Url.Query.Contains("SomeTag&quo

我一直在尝试从Edge获取我的应用程序的Url,请求Firefox或Chrome,但到目前为止,在这方面运气不佳。 此应用程序与IE11完美配合,在此处发布了几段代码:

ViewBag.RefURL = HttpContext.Request.Url.AbsoluteUri;
if (HttpContext.Request.UrlReferrer != null && HttpContext.Request.Url.Query.Contains("SomeTag"))
{ViewBag.RefURL = HttpContext.Request.UrlReferrer.AbsoluteUri;}
这里RefURL在IE11中得到了正确的应用,但其他浏览器只给了我一个主页

任何有助于让这个工作的边缘将是伟大的。还想知道我如何才能得到这项工作的Firefox和Chrome太!我看到过一些帖子,他们给出了一些想法,但没有一个有效

多谢各位