C
Chuck P
I was trying to understand why the GridView displays some less than
desireable features when ViewState is disabled.
If you disable viewstate, you can delete or update the wrong records.
http://scottonwriting.net/sowblog/posts/10054.aspx
I don't understand why when a postback occurs that the GridView re-reads
from the DataSource when ViewState is disabled. Why doesn't it just use the
values in the DataKeys collection that was returned with the post in the
controlState?
I am assuming the Keys are in the control state.
I am assuming it is in the control state because, the other day I had to add
a non-displayable column (RowVersion:timestamp) to the DataKeys collection
because I was using it in my Update/Delete parameters. Why do I need to
include RowVersion in the DataKeys, if the DataSource gets requeried anyway?
thanks,
desireable features when ViewState is disabled.
If you disable viewstate, you can delete or update the wrong records.
http://scottonwriting.net/sowblog/posts/10054.aspx
I don't understand why when a postback occurs that the GridView re-reads
from the DataSource when ViewState is disabled. Why doesn't it just use the
values in the DataKeys collection that was returned with the post in the
controlState?
I am assuming the Keys are in the control state.
I am assuming it is in the control state because, the other day I had to add
a non-displayable column (RowVersion:timestamp) to the DataKeys collection
because I was using it in my Update/Delete parameters. Why do I need to
include RowVersion in the DataKeys, if the DataSource gets requeried anyway?
thanks,