Click here to Skip to main content
15,881,173 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi All,

After installing http://support.microsoft.com/kb/2894855[^]
This update on my webserver (windows server 2012)

While doing cross page posting, I am getting the following error.

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.

Note: This error is not getting when I changed enableEventValidation="false" in my webconfig/Page attribute. Which I am not suppose to do as per the security aspects.
Posted

1 solution

Hi Renju,

This issue will come only when we use same control id in the request page and the current page.

try generating dynamic control id based on the page by which we can come out from these kind of validation issues.

Hope this will help !!!
 
Share this answer
 
Comments
Renju Vinod 31-Dec-14 7:30am    
Hi,
Thanks for the solution, any alternative solution as this required a huge change in my current site.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900