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

.net FrameWork兼容问题!急,在线等!
.net   framework1.1使用ajaxpro做的联动,在.net   framework2.0的环境下运行出现错误如下:
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.
如何   解决?急急急!


------解决方案--------------------
在HTML页面最顶部,修改页面EnableEventValidation= "false "


<%@ Page Language= "C# " AutoEventWireup= "true " CodeBehind= "WebForm1.aspx.cs " Inherits= "WebForm1 " EnableEventValidation= "false "%>
------解决方案--------------------
加上这个EnableEventValidation= "false "在1.1下不用编译,在2.0上可以正常运行