Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Mar 27, 2011 07:31 AM by master of the maze
Jan 18, 2007 03:18 PM|LINK
The error happens on the postback due to the submit button. I have not found any problems with the html so far.
I also have tried moving everything in if not postback and still get it. Disabling event validation does help but not sure if that is desired. Since it's a intranet app, this may be ok.
Feb 18, 2007 07:47 AM|LINK
Feb 18, 2007 08:07 AM|LINK
Feb 18, 2007 08:40 AM|LINK
as is said on some of the previous posts, one common reason for this is that you databind GridView etc in Page_Load without Not Page.IsPostBack | !Page.IsPostBack check.
Reason is that postback data validation happens at postback event raise stage ;the 2nd time occurring just after Page_Load, (for example Button checks in RaisePostBackEvent method, when it calls ValidateEvent method), and when you redatabind in Page_Load
you recreate the controls. And what's important,you recreate them before event validation occurs, and this has the impact that event validation thinks data originated from different control than the one it has in hands. And that's exactly what event validation
is designed to check for.
When you don't redatabind, it is "known" that the control is the source of that specific piece of data (postback argument etc etc). I suppose it is basically just comparing some sort of hash value.
Feb 20, 2007 05:58 PM|LINK
I was getting this error :Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/>
on my 2.0 app that was upgraded from 1.1. I am not using AJAX and I was wondering how I am getting callback error!
Anyways I think some how ___EventValidation hidden field variable has not been loaded in the browser page when i programmatically hide few of my controls but when disable them instead of hide them it works fine. This works in 1.1 when i hide but not in
2.0. So some thing is changed in 2.0 and I am sure the change is for good.
Hope this helps
Invalid postback or callback argument.
Feb 20, 2007 06:05 PM|LINK
I was getting this erro:
Invalid postback or callback argument. Event validation is enabled using <pages enableEventValidation="true"/>
pnlContorl.Visible = False
'Changed above code to follwing
pnlQuarter.Enabled = False
Feb 22, 2007 10:23 AM|LINK
I m getting similar error messag w/ Firefox , its just a simple user control, that has a linkbutton , it is redirecting to login page when clicked, when you click on it is giving the exception below, I don't get it all the times, once in a while, I never
get it w/ IE
Heelp please I love Firefox
Feb 28, 2007 01:40 PM|LINK
Mar 07, 2007 06:50 AM|LINK
So is there a solution not to get this error if i want to databind my datatable to the gridview when the page postback?
Mar 12, 2007 10:36 AM|LINK
I found that due to a cut and paste error this issue can be due to having an extra <form id="xxx" runat="server"> on the page.
Hope that helps someone somewhere