当前位置: 代码迷 >> ASP.NET >> 高分乞援!解决后马上结贴
  详细解决方案

高分乞援!解决后马上结贴

热度:382   发布时间:2013-02-26 00:00:00.0
高分求助!解决后马上结贴

我点完按钮后出现这样的错误页面,一直没有找到原因,请高手指点,解决后马上结贴
Server   Error   in   '/ '   Application.
--------------------------------------------------------------------------------

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 标签上加上这个就好了
enableEventValidation= "false "
  相关解决方案