日期:2014-05-19  浏览次数:20711 次

<pages enableEventValidation="true"/>是啥啊?大家帮我看看这个错误!在线等
错误提示:

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.  


这个页面自从我加了回调分页以后就不能点击这个按钮了,原本这个按钮是执行一个跳转页面的作用,但是现在一点,就报这个错~~大家帮忙^___^



------解决方案--------------------
页面最顶部,把EnableEventValidation= "false"试试
如:
<%@ Page Language= "C# " AutoEventWireup= "true " Codebehind= "default.aspx.cs " Inherits= "default " EnableEventValidation= "false "%>