This is a migrated thread and some comments may be shown as answers.

Event validation error on grid after Rebind

1 Answer 109 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Arno
Top achievements
Rank 1
Arno asked on 16 Oct 2012, 07:13 AM
Hello,

In my application I've implemented a search page with 3 instances of a user control using a RadGrid. As the page reloads to Rebind the data (using the search text), I gete the following error.

Invalid postback or callback argument.  Event validation is enabled using <pages enableEventValidation="true"/> in configuration or <%@ Page EnableEventValidation="true" %> in a page.

I've read quite a few articles about this error and the theory about it I do understand. But I can't seen to figure out how to solve it. I believe the Edit-button (ButtonType = "ImageButton") is causing the error, because it is not yet registered for event validation.

How can I accomplish that each edit button is registered?

1 Answer, 1 is accepted

Sort by
0
Arno
Top achievements
Rank 1
answered on 16 Oct 2012, 07:56 AM
I found a solution (finally). A collegue of mine proposed a way to get the databinding out of the PageLoad.
Tags
Grid
Asked by
Arno
Top achievements
Rank 1
Answers by
Arno
Top achievements
Rank 1
Share this question
or