D
DC
Hi,
I am using the GridView and other databound controls a lot to present
realtime data, so I cannot use ViewState but instead must always get
fresh data from sql server whenever the user triggers an action like
resorting the grid.
I am using the typical events for sorting and I thought with ASP.Net
2.0 a ControlState was introduced, which allows to handle such events
with EnableViewState=false. But when I disable ViewState the event
does not get fired, just like it used to be in ASP.Net 1.1.
So currently when somebody resorts, I am binding the grid once in
order to set it up correctly an fire the event, and then I am tripping
to the database again and binding it a second time to the updated and
resorted data.
Can I avoid the second trip?
I am probably a halfwit but I am running into similar "double-load"
issues quiet often. Maybe someone knows a resource with best practises
concerning this affair.
Thanks a lot for any hints in advance! Regards
DC
I am using the GridView and other databound controls a lot to present
realtime data, so I cannot use ViewState but instead must always get
fresh data from sql server whenever the user triggers an action like
resorting the grid.
I am using the typical events for sorting and I thought with ASP.Net
2.0 a ControlState was introduced, which allows to handle such events
with EnableViewState=false. But when I disable ViewState the event
does not get fired, just like it used to be in ASP.Net 1.1.
So currently when somebody resorts, I am binding the grid once in
order to set it up correctly an fire the event, and then I am tripping
to the database again and binding it a second time to the updated and
resorted data.
Can I avoid the second trip?
I am probably a halfwit but I am running into similar "double-load"
issues quiet often. Maybe someone knows a resource with best practises
concerning this affair.
Thanks a lot for any hints in advance! Regards
DC