By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,627 Members | 2,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,627 IT Pros & Developers. It's quick & easy.

Invalid postback or callback argument

P: n/a
I have added a couple of buttons to my ASP.NET 2.0 page. which both are
meant to do pretty simple things, a Back button and a Submit data
button. But I get this error whenever I click either of the buttons :

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.
How do I prevent this error?
*** Sent via Developersdex http://www.developersdex.com ***
Apr 11 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
This event usually happens when validation is enabled and you have either,
added fields to the form on the clientside and/or you have submitted the form
before the following hidden field has been rendered,

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
value="/wEWBALDgtmMCQLmwMTlCwLT/KSEAQKt7K6OC7Qmo2W+MsXlihjcAaIc/unn8Nw3" />.

Basicaly ASP.net is trying to make sure that the form being submitted is the
same form that it rendered.

"Mike P" wrote:
I have added a couple of buttons to my ASP.NET 2.0 page. which both are
meant to do pretty simple things, a Back button and a Submit data
button. But I get this error whenever I click either of the buttons :

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.
How do I prevent this error?
*** Sent via Developersdex http://www.developersdex.com ***

Apr 11 '06 #2

P: n/a
Figured this out myself...a </form> tag that shouldn't have been there
was causing this error.

*** Sent via Developersdex http://www.developersdex.com ***
Apr 11 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.