I had a problem today using a multipart form which gave me 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.”
The code I’m using worked with .net Beta 2 but broke after upgrading. I tried adding the
<%@ Page EnableEventValidation="true" %>
setting, tried overriding Page.Render and adding the
ClientScriptManager.RegisterForEventValidation(btnSubmit.UniqueID)
all to no avail. I finally got it working by setting validation to false e.g.:
<%@ Page EnableEventValidation="false" %>
I didn’t find much documentation googling this error so, hope it helps.
Print | posted on Thursday, February 02, 2006 2:24 PM