Link to home
Start Free TrialLog in
Avatar of UAnurag
UAnurag

asked on

System.ArgumentException: Invalid postback or callback argument

Hi Guys,


I have ported tthe code from 1.1 to 2.0 and I am getting the following exception. Does anyone have idea about it? I dont want to change the <pages enableEventValidation="true"/> to <pages enableEventValidation="false"/> on every page.

Please let me know soon. Following is the error message...


System.Web.HttpUnhandledException: Exception of type 'System.Web.HttpUnhandledException' was thrown. ---> 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.


Thanks,

Anurag
Avatar of laotzi2000
laotzi2000

In web.config add this:
<pages enableEventValidation="true"/>
ASKER CERTIFIED SOLUTION
Avatar of laotzi2000
laotzi2000

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial

Hi,

 

in repeater control in textbox text changed event i have the following problem in InternetExplorer only,in Mozilla it is working properly

 

iam using EnableEventvalidation="false"  then the text changed event is not firing in IE

 

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.

 

Thanks in advance

with regards,

prasanth