ASP.NET Response.Redirect 将 CDATA 显示到浏览器
我最近将一个 Web 应用程序移至新服务器,每个 response.redirect 最终仅向浏览器显示 CDATA。 表单确实回发,进行了更改,但浏览器最终并未加载新页面,仅显示 CDATA。
有任何想法吗?
I recently moved a web application to a new server and every response.redirect ends up just showing the CDATA to the browser. The form did post back, the changes were made, but the browser doesn't end up loading the new page, just shows the CDATA.
Any ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
来自 asp.net 的 HTTP 重定向通常使用 HTTP 标头而不是任何 HTML 输出进行。 您是否尝试过询问 HTTP 标头以确定返回的内容?
以下工具可以提供帮助:
http://web-sniffer.net/
CDATA 是一个 XML 元素,因此我不期望这是服务器的唯一输出。 您能否尝试将完整的输出粘贴到此处供我们查看?
An HTTP redirect from asp.net is usually made using the HTTP header rather than any HTML output. Have you tried interogating the HTTP header to determine what is being returned?
Tools such as the following can help:
http://web-sniffer.net/
CDATA is an XML element, and as such I would not expect this as a sole output from the server. Could you try pasting the full output here for us to take a look at?
是的,这就是让我感到困惑的原因...例如,这是唯一的响应:它也会发生在所有浏览器中...
Yeah, that's what got me confused... For instance, this is the sole response: It happens in ALL browsers as well...