Invalid postback or callback argument 的解决办法
Posted on 2008-04-11 13:13 落花人独立 阅读(3467) 评论(0) 编辑 收藏 举报在使用Ajaxtookite中的UpdatePannel进行异步更新,运行时会出现如下的一个popup窗口,提示你如下信息,然后ok一下就没有什么了。解决办法列在下面:
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.
解决方法:
在.aspx页面中的<%@ Page …… %>语句中加上属性EnableEventValidation="false"