Page 1 of 1

Error after saving a Auto Fill form

Posted: 30 Jun 2015
by gleegeld
I have a drop down on my form that allows a user to select a title which will then auto-fill certain fields in the form. However when I hit save I received the error below.

Invalid postback or callback argument. Event validation is enabled using 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.

Any thought on how to fix this?

Re: Error after saving a Auto Fill form

Posted: 02 Jul 2015
by Dmitry Kozlov
Hi,

Most likely, you insert an option into a select box that was not there originally via JavaScript. As a workaround I'd suggest disabling EnableEventValidation property in the web.config by placing the following element into system.web section:

Code: Select all

<pages enableEventValidation="false" />

Re: Error after saving a Auto Fill form

Posted: 09 Jul 2015
by gleegeld
Worked perfectly. Thanks a million!