Ajax Control工具包异常

时间:2014-01-25 09:20:33

标签: asp.net visual-studio-2012 ajaxcontroltoolkit

我有一个带有编辑按钮的gridview。单击编辑按钮时,将显示一个模式弹出窗口,该弹出窗口在vs2008中正常工作。当我将应用程序转换为vs2012时,单击编辑按钮后,我收到以下JavaScript异常。

0x800a139e - Microsoft JScript runtime error: 
Sys.WebForms.PageRequestManagerServerErrorException: 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.

我尝试了以下更改

1.Added enable event validation=”false” in the page header –not worked
2.Added toolscript manager instead of script manager-not worked

我该如何解决这个问题?

0 个答案:

没有答案