ImageButton event giving Invalid Postback in GridView
-
12-12-2019 - |
문제
Gridview postback Issues: After much time and frustration, I'm posting the solution for others struggling with the same scenario...
On pageLoad I was binding the gridview for an initial display of the data. One column had an imagebutton (templatefield). Clicking an ImageButton caused an the error: "Invalid Postback".
해결책
The cause: I had inadvertently failed to put a (! IsPostback) condition in the pageload around the bind. It was causing some sort of double bind when the ImageButton's click event fired; thus, creating a conflict.
제휴하지 않습니다 StackOverflow