无效的回发或回叫 [英] Invaild Postback or Callback

查看:71
本文介绍了无效的回发或回叫的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我正在用asp.net应用程序开发c#.net.当我在生产环境中运行我的应用程序时,出现以下错误.但是有时无法重现.我在具有母版页概念的应用程序中使用Ajax. />
错误是:

无效的回发或回调参数.使用< pages enableeventvalidation ="true">启用事件验证.在配置中或<%@页面EnableEventValidation ="true">在页面中.为了安全起见,此功能验证回发或回调事件的参数源自最初呈现它们的服务器控件.如果数据有效且预期,请使用ClientScriptManager.RegisterForEventValidation方法以注册回发或回调数据以进行验证.

如何避免此错误.请帮助我

提前致谢.

Hi All,

i am developing c#.net with asp.net application.when i am running my application in production i am getting the following error.but it can not be reproduced some times.I am using Ajax in my application with master page concept.

The error is:

Invalid postback or callback argument. Event validation is enabled using <pages enableeventvalidation="true"> in configuration or <%@ Page EnableEventValidation="true"> in a page. For security purposes, this feature verifies that arguments to postback or callback events originate from the server control that originally rendered them. If the data is valid and expected, use the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation.

How to avoid this error.Pls help me

Thanks In advance.

推荐答案

错误表示它的意思.解决此问题的简单方法是关闭验证.另一种方法是使用错误消息中向您解释的方法.
The error means what it says. The easy way to fix it, is to turn off validation. The other way is to use the method explained to you in the error message.


这篇关于无效的回发或回叫的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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