?
Solved

System.ArgumentException: Invalid postback or callback argument

Posted on 2006-05-15
6
Medium Priority
?
3,369 Views
Last Modified: 2012-05-05
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
0
Comment
Question by:UAnurag
  • 2
3 Comments
 
LVL 12

Expert Comment

by:laotzi2000
ID: 16684867
In web.config add this:
<pages enableEventValidation="true"/>
0
 
LVL 12

Accepted Solution

by:
laotzi2000 earned 2000 total points
ID: 16684872
Correction:

In web.config add this:
<pages enableEventValidation="false"/>
0
 

Expert Comment

by:sastry_hora
ID: 22912857

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  
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Screencast - Getting to Know the Pipeline
Suggested Courses

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question