文章资讯 | 实用查询 | 桌面壁纸 | 网络电台 | 网址成语五笔字典 | 歇后语笑话软件 | 算命 | 周公解梦 | 生日密码 | 小游戏 | 许愿墙 | 天气留言
您现在的位置: 蓝派网 >> 文章中心 >> 网络编程 >> .NET >> ASP.NET >> 文章正文
站内文章搜索:           

Invalid postback or callback argument 的解决办法

作者:佚名    文章来源:cnblogs.com    更新时间 :2008-7-10 23:10:02
在使用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"


发表评论】【打印此文】【关闭窗口】【点击数:
  • 上一篇文章:
  • 下一篇文章: 没有了
  • 网友评论: