Web 部件异步回发获取 Sys.WebForms.PageRequestManagerParserErrorException
错误:Sys.WebForms.PageRequestManagerParserErrorException:无法解析从服务器接收的消息。出现此错误的常见原因是通过调用 Response.Write()、响应筛选器、HttpModules 或启用服务器跟踪来修改响应。 详细信息: ' 附近解析错误 http://服务器名称/ScriptResource.axd?d=EltQ7pexCbRndWc7D3a....b2a49de Line: 5
我最近将 SmartPart + UserControl Web 部件转换为“真实” Web 部件。用户控制部分基本保持不变,并包含一个UpdatePanel。目的是拥有一个交互式日历控件,它可以更新自己的数据,但不会导致整个页面刷新。转换为真实 Web 部件的主要原因是为了利用个人存储,以便用户可以选择特定设置并存储它。
我现在遇到的问题是,当单击我的 Web 部件中的 LinkButton 之一时,我收到上面列出的错误。我没有执行任何 Response.Writes 并且 IIS 中似乎没有任何 HttpHeader 条目。
有人可以帮忙吗?谢谢。
新线索 刚刚注意到,回发事件在页面签出时起作用,但在页面发布时不起作用。这有什么意义呢?
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 '
http://servername/ScriptResource.axd?d=EltQ7pexCbRndWc7D3a....b2a49de
Line: 5
I recently converted a SmartPart + UserControl web part to a 'real' web part. The user control part remained essentially unchanged and contains an UpdatePanel. The aim is to have an interactive calendar control which updates its own data but does not cause a full page refresh. The main reason for converting to a real web part is to make use of personal storage so that users can choose a particular setting and store it.
The problem I now have is that when one of the LinkButtons in my web part are clicked I get the error listed above. I am not doing any Response.Writes and there don't seem to be any HttpHeader entries in IIS.
Can anyone help here? Thanks.
New clue
Just noticed that the postback events work when the page is checked out but not when it has been published. What is the significance of this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否添加了共享点脚本管理器:
http://msdn.microsoft.com/en -us/library/ff650218.aspx
听起来 HttpModule 正在更改更新面板的 json 回发
Have you added the sharepoint script manager:
http://msdn.microsoft.com/en-us/library/ff650218.aspx
It sounds like a HttpModule is altering the json postback of the update panel