문제

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.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top