Questions tagged [eventvalidation]
43 questions
13
votes
4 answers
Disable EventValidation for single control, is it possible?
I know this is a very debated topic, and usually when you are thinking about this as a solution you might want to rethink your UI logic.
I know I can pass validation using ClientScriptManager.RegisterForEventValidation. But, I'd really like to…

Raúl Roa
- 12,061
- 13
- 49
- 64
9
votes
5 answers
se the ClientScriptManager.RegisterForEventValidation method in order to register the postback or callback data for validation
guys, I have a usercontrol in my asp.net 3.5 application and I am passing some plain text on button click event. button is situated in the usercontrol. but when I fire the event, I am getting the following error;
Invalid postback or callback…

tugberk
- 57,477
- 67
- 243
- 335
7
votes
3 answers
ASP.NET EventValidation fails when .NET 4.5 Framework is installed in only one server behind the load balancer
We have installed .net 4.5 Framework in one of our web servers. Our applications are targeted for .net 4.0 and run off multiple servers behind a load balancer.
After the installation we get the following error message for some POST…

chrisk
- 159
- 4
- 7
5
votes
5 answers
How do I prevent exceptions from half-loaded pages' form submission while using asp.net event validation?
I have a page with some dynamically added buttons. If you click a button before the page has fully loaded, it throws the classic exception:
Invalid postback or callback argument.
Event validation is enabled using in configuration or in a page.…

Shawn
- 19,465
- 20
- 98
- 152
5
votes
7 answers
ListBox elements rearranged with JavaScript causing event validation error on postback
I have created an item swapper control consisting in two listboxes and some buttons that allow me to swap items between the two lists. The swapping is done using javascript. I also move items up and down in the list. Basically when I move the items…

kjv
- 11,047
- 34
- 101
- 140
4
votes
1 answer
Event validation: Allow __doPostBack for one control and *any* arguments
I'm using
__doPostBack(clientIdOfSomeButton, someData);
to create a PostBack in JavaScript. The problem is that someData is not known in advance, and event validation kicks in because I cannot ClientScript.RegisterForEventValidation every possible…

Heinzi
- 167,459
- 57
- 363
- 519
4
votes
1 answer
Disabling ASP.NET EventValidation
We're tired of getting exceptions regarding "Invalid postback or callback argument" in our web app. What scenario(s) causes this error?
After talking to users, we've determined that one possible cause of this is when they click something that…

Josh Stodola
- 81,538
- 47
- 180
- 227
4
votes
2 answers
Invalid postback or callback argument. Getting only In Case of Image Button
I am getting the following error :
Invalid postback or callback argument. Event validation is enabled using in configuration or <%@ Page EnableEventValidation="true" %> in a page. For security purposes, this…
user1321748
3
votes
1 answer
ASP.Net CascadingDropDown and EnableEventValidation="false"
I have just got a CascadingDropDown from the AJAX Toolkit working with SelectedIndexChanged to redirect to a page passing a querystring of the selected value. I'm well chuffed!
However, I only got the SelectedIndexChanged event working by adding …

ComfortablyNumb
- 1,448
- 10
- 37
- 64
3
votes
1 answer
ASP.Net Event Validation fails on Android phone browser
We're running a fairly large site, and a lot of our visitors have started using their Android based cellphones to visit the site. However when they try to login, we get an Event Validation error:
Invalid postback or callback argument.
Event…

Steffen
- 13,648
- 7
- 57
- 67
3
votes
2 answers
Tracing invalid postback or callback argument
In my unhandled exception logging I see this error sporadically through the day on a given page. I don't have any controls that I create programmatically on the page or databind any buttons onto the page.
In my logging I grab the current handler…

Chris Marisic
- 32,487
- 24
- 164
- 258
3
votes
1 answer
Invalid ViewState error in Firefox when EnabledEventValidation is on
I have a stable error that reproduces each time i hit F5:
There are 2 grids (master-detail) and the error actually happens on callback that is raised by my client-code when focused-row-changed event occurs on main grid. Something like this:
…

Artur Udod
- 4,465
- 1
- 29
- 58
2
votes
0 answers
Getting Column Index when selecting cell in GridView
Below is the code that I use to select each individual cell. However, when I do select that cell, I need the data in that cell, the rowIndex and columnIndex. Unfortunately after all the research and trying others code.. I'm stuck on how to obtain…

Dan
- 21
- 6
2
votes
0 answers
exception:Invalid postback or callback argument. Event validation is enable, caused by jQuery
Well I've been reading about this (actually not here in stackOverflow), and I have a few question and need some advice about this "old" topic.
Firtst at all, what I do?
Change value of a on "onclientclick" event using a function on javascript and…

Allende
- 1,480
- 2
- 22
- 39
2
votes
0 answers
Event validation issue with updatepanel "Invalid postback or callback argument"
I am an UpdatePanel virgin and I'm having problems.
I have 2 drop down lists. I am basically trying to update the contents of the second drop down depending on what I select on the first drop down. In chrome this all works fine. In IE it doesn't…

Andrew
- 9,967
- 10
- 64
- 103