单击按钮时Telerik错误 [英] Telerik Error when click on button

查看:68
本文介绍了单击按钮时Telerik错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以下错误我收到了:



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

Following error I''m getting:

Uncaught Sys.WebForms.PageRequestManagerParserErrorException: 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.

推荐答案

操作导致此代码执行必须是回发事件,而不是AJAX调用。这是由于处理AJAX请求的方式的性质。

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



希望它有所帮助!



- Amit
The action that causes this code to execute MUST be a postback event, and not an AJAX call. This is due to the nature of the way AJAX requests are processed.
Check Sys.WebForms.PageRequestManagerParserErrorException - what it is and how to avoid it[^]

Hope it helps!

--Amit


我添加了

I added
if (Session.SessionID == "")
        {
            Page.Session.Add("SessionID", Session.SessionID);
        }




页面加载中的



in Page Load.


这篇关于单击按钮时Telerik错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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