Domanda

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

È stato utile?

Soluzione

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.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top