剑花 烟雨

   江南  好 风景旧曾谙 日出江花红胜火 春来江水绿如蓝 能不忆东北

理想中的建筑师应该是一个诗人、数学家、精通历史、精通心理学、熟悉音乐、了解医学、还要具备天文学和计算的基本知识。
                                                                                                                         ------------------公元前25年,罗马建筑学家Vitruvius
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Invalid postback or callback argument 的解决办法

Posted on 2008-04-11 13:13  落花人独立  阅读(3459)  评论(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"


count hit
欢迎您到紫阁阳光坐客