详细信息:解析'< html xmlns ='http://'附近的错误. [英] Details: Error parsing near '<html xmlns='http://'.

查看:114
本文介绍了详细信息:解析'< html xmlns ='http://'附近的错误.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Microsoft JScript运行时错误:

Microsoft JScript runtime error:

Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed. Common causes for this error are when the response is modified by calls to Response.Write(), response filters, HttpModules, or server trace is enabled.
Details: Error parsing near '<html xmlns='http://'.


这类错误的解决方案是什么?


what is the solution on this type of error

推荐答案

简而言之,您正在使用某种类型的AJAX机制,期望其结果采用一种格式(我怀疑是JSON),而您是通过其他方式发送它.

如果打算将其推送到现有页面中,则不应返回完整的文档(即带有< html>标记,DTD参考等).您应该有一个将表格包装为HTML的方法,但只有< table> (或周围的< div>)标签部分.

然后,您可以使用标准的AJAX技术(即,不是您正在使用的任何Microsoft魔术来立即写入)来检索URL并用它替换页面上现有项目的内容.
In simple terms, you''re using some type of AJAX mechanism which is expecting its result to be in one format (I suspect JSON), and you''re sending it in another.

You shouldn''t be returning a complete document (i.e. with <html> tags, DTD reference and so on) if the intent is to push this into an existing page, anyway. You should have a method which wraps the table as HTML, but only the <table> (or surrounding <div>) tag section.

Then you can use standard AJAX techniques (i.e. not whatever piece of Microsoft magic you''re using write now) to retrieve the URL and replace the content of an existing item on the page with it.


这篇关于详细信息:解析'&lt; html xmlns ='http://'附近的错误.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆