关于重定向到另一个页面的错误。 Asp.net c# [英] Regarding error in redirecting page to another. Asp.net c#
问题描述
Hi
当我重定向到asp.net中的其他页面时,出现了这个错误,如下所示:
Firefox已经检测到服务器正以一种永远不会重定向的方式请求这个地址完成。
这个错误到底是什么意思?
谢谢。
我发现这是最常见的异常处理程序 Response.Redirect( )
的错误页面本身会导致异常。因此,浏览器只是获得一堆HTTP 3xx响应每页它请求和报告你正在描述的错误(而IE将继续不管)。
Hi I got this error when I was redirecting to other page in asp.net as follows : "Firefox has detected that the server is redirecting the request for this address in a way that will never complete." What exactly does this error mean? Thank You.
Theres a high chance that whatever page you are redirecting to, is redirecting itself in such a way that you get a "redirection loop" that will never reach completion.
I find this is most common when an exception handler Response.Redirect()
's to an error page which itself causes an exception. Therefore the browser just gets a bunch of HTTP 3xx responses for each page it requests and reports the error you're describing (whereas IE will just carry on regardless).
这篇关于关于重定向到另一个页面的错误。 Asp.net c#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!