I have a VS 2003 ASP.NET project used javascript to handle postback
Now I am trying to migrate it to VS 2008. However, after conversion, I found the following error when calling postback
After I add <pages enableEventValidation="false"/> to web.config, the error was dismissed, however, no response when clicking on link calling javascript postback.
I wonder if there is any other solution other than "RegisterForEventValidation method in order to register the postback or callback data for validation. ", as it will induce a lot of effort for doing this in my project.
Exception:
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.
MichaelPP
0 Points
1 Post
Javascript postback problem after migrating from VS 2003 to VS 2008
Jul 28, 2011 04:51 AM|LINK
I have a VS 2003 ASP.NET project used javascript to handle postback
Now I am trying to migrate it to VS 2008. However, after conversion, I found the following error when calling postback
After I add <pages enableEventValidation="false"/> to web.config, the error was dismissed, however, no response when clicking on link calling javascript postback.
I wonder if there is any other solution other than "RegisterForEventValidation method in order to register the postback or callback data for validation. ", as it will induce a lot of effort for doing this in my project.
Exception:
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.
lohumi
Member
353 Points
158 Posts
Re: Javascript postback problem after migrating from VS 2003 to VS 2008
Aug 01, 2011 05:44 AM|LINK
Please visit here.
http://weblogs.asp.net/davidfowler/archive/2009/03/09/invalid-postback-or-callback-argument-in-the-datacontrols.aspx
http://www.aspnetajaxtutorials.com/2007/10/invalid-postback-or-callback-argument.html
Don't forget to click "Mark as Answer" on the post that helped you.