Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息。 [英] Microsoft JScript runtime error: Sys.WebForms.PageRequestManagerParserErrorException: The message received from the server could not be parsed.

查看:66
本文介绍了Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在MVC应用程序的ASPX视图页面中使用AsyncPostBackTrigger到ASP.NET Button控件时出现以下错误。



Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息。此错误的常见原因是通过调用Response.Write(),响应过滤器,HttpModules或服务器跟踪来修改响应时。

详细信息:解析''<!DOCTYPE附近时出错html>

< ht''。>



当我使用PostBackTrigger按钮时它会正常工作但是根据要求我应该浏览AsyncPostBackTrigger。



注意:我在Razor View页面中使用这个ASPX View页面。



解决这个问题的任何想法!

解决方案

在这里,请阅读获取此错误的原因以及如何处理它:

Sys.WebForms.PageRequestManagerParserErrorException - 它是什么以及如何避免它 [ ^ ]

Sys.WebForms.PageRequestManagerParserErrorException:... [ ^ ]


ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);

scriptManager.RegisterPostBackControl(this.btnsubmit);


我抓了这个错误超过6个月我无法追踪这个错误然后有一天我刚刚删除了更新面板并且知道服务器端代码有错误。

所以出了问题并且它超出了脚本管理器的范围。



因为我也访问了许多与此错误相关的链接,即便无法通过这些细节解决因为不清楚是什么导致了这个错误。

所以我在这里发布了这个错误的解决方案。

只需删除更新的面板并调试你会发现错误并修复该错误,然后再次放置更新面板。



转到

Cick Here





谢谢 - 希望这将有助于面对问题

Hi,

I am getting the following error when using AsyncPostBackTrigger to the ASP.NET Button control in ASPX View Page in my MVC Application.

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 ''<!DOCTYPE html>
<ht''.>

When i use PostBackTrigger to the button it will work fine but according to the requirements i should go through the AsyncPostBackTrigger.

Note: I am using this ASPX View Page in Razor View Page.

any ideas to solve this issue!

解决方案

Here, read on the reasons for getting this error and how to handle it:
Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it [^]
Sys.WebForms.PageRequestManagerParserErrorException:...[^]


ScriptManager scriptManager = ScriptManager.GetCurrent(this.Page);
scriptManager.RegisterPostBackControl(this.btnsubmit);


I scratched for this error for more then 6 months i was unable to trace this error then one day i just removed the update panel and come to know that there was an error at server side code .
so something went wrong and its out of scope of script manager.

as I also visited many links related this errors,even then unable to solve by those details as it was not clear what causes this error.
So i am posting here the Solution for this Error.
Just remove the updated panel and debug you will find error and fix that error and then put update panel again.

go to
Cick Here


thanks-Hope this will help to some one facing the issue


这篇关于Microsoft JScript运行时错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器收到的消息。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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