Invalid postback or callback argument.

R

Ray Stevens

Anyone see this error that appears to have cropped up with the RTM version
of .NET:
BASE EXCEPTION:: System.ArgumentException: 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.

I'm not sure what to do about it.
 
G

Guest

This error ocurs when the layout of the form being submitted differs from
what has been defined on the server side and you have validation enabled.
This usually caused by adding new fields, or items to forms using client
script, or the end user submits the form before the page has finished
rendering because the server needs the following line

<input type="hidden" name="__EVENTVALIDATION" id="__EVENTVALIDATION"
value="somestringofgiberish"

to be corectly rendered before submitting the form. It is a feature to stop
people submitting their own forms to your ASP.net page.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,021
Latest member
AkilahJaim

Latest Threads

Top