Invalid postback or callback argument. Event validation is enabled using...

May 4 2011 4:36 PM
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."

The error above was recieved after I deployed my site to an https.  Worked fine when I deployed to http.

The fix was pretty simple and I wanted to relay this fix to others who might of came across this situation. 

In my instance, I had a page that had nested <form> tags and did not declare them as runat="server".

I removed the nested form tags and gave each form tag an id along with the runat="server".

Fixed it....

This is a ASP.NET C# web application.

Answers (1)