GridView and multiple postbacks problem
Posted
by Jonn
on Stack Overflow
See other posts from Stack Overflow
or by Jonn
Published on 2010-03-12T05:23:16Z
Indexed on
2010/03/12
5:27 UTC
Read the original article
Hit count: 248
I have a grid view containing checkboxes and a great deal of problems surrounding it.
- First of all the page on_load and on_init gets called twice. The first call says it's a postback and the second isn't. If I check for postbacks, during the second call the change of state (i.e. A button_click event that was supposed to refresh the data in the grid) that triggered during the first call does not register.
- If I don't check for postbacks, checkboxes in the GridView do not retain its state by the second call to OnLoad/OnInit.
© Stack Overflow or respective owner