Frage

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".

War es hilfreich?

Lösung

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.

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top