简体   繁体   English

ASP.NET Response.Redirect将CDATA显示给浏览器

[英]ASP.NET Response.Redirect shows CDATA to browser

I recently moved a web application to a new server and every response.redirect ends up just showing the CDATA to the browser. 我最近将一个Web应用程序移到了新服务器上,每个response.redirect最终只是将CDATA显示给浏览器。 The form did post back, the changes were made, but the browser doesn't end up loading the new page, just shows the CDATA. 表单确实回发了,进行了更改,但是浏览器并没有最终加载新页面,只显示了CDATA。

Any ideas? 有任何想法吗?

An HTTP redirect from asp.net is usually made using the HTTP header rather than any HTML output. 来自asp.net的HTTP重定向通常是使用HTTP标头而不是任何HTML输出进行的。 Have you tried interogating the HTTP header to determine what is being returned? 您是否尝试过查询HTTP标头以确定要返回的内容?

Tools such as the following can help: 以下工具可以帮助您:
http://web-sniffer.net/ http://web-sniffer.net/

CDATA is an XML element, and as such I would not expect this as a sole output from the server. CDATA是XML元素,因此我不希望这是服务器的唯一输出。 Could you try pasting the full output here for us to take a look at? 您可以尝试在此处粘贴完整的输出内容以供我们查看吗?

是的,这就是让我感到困惑的原因……例如,这是唯一的回应:它也发生在所有浏览器中……

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM