首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 网站开发 > asp.net >

.net FrameWork兼容有关问题!

2012-01-14 
.netFrameWork兼容问题!急,在线等!.netframework1.1使用ajaxpro做的联动,在.netframework2.0的环境下运行

.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上可以正常运行

热点排行