UpdatePanel 报错 Microsoft JScript 运行时错误: Sys.WebForms.PageRequestManagerParserErrorException:解决办法

来源:互联网 发布:linux 查找文件夹 编辑:程序博客网 时间:2024/05/16 12:14

 

在使用UpdatePanel1的时间,经常会报下面的错误,还有一种就是输出在TextBOX控件上的时候,英文和数字和一般的简体中文都可以正常使用,但有些带有特殊符号的如<>,./'等就报下面错误了,

Microsoft JScript 运行时错误: 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 '<b>Oops! Looks like '.

 

解决办法:

在aspx添加

 validateRequest="false"

如图:

 

原创粉丝点击