I am trying to reduce the load in the viewstate coming from my datagrid, but I hope it is not working Has been doing. When my page runs in the beginning (and my data grid is empty), this visibility is about 17 9 4 bytes. When I fill my datagrid with I realized DataTable I was in my data layer class (used to bind my DataGrid ), Was also stored in It was being stored in EnableViewState = "true" , the viewstate comes out of 4,074,656 bytes, and when I the same data on the
EnableViewState = "incorrect" , ViewState comes out of 2,477,356 bytes. I know that this number is about half cut, but it is still a large number (and it is in proportion to the size of the grid). Without anything coming from the datagrid, I hope that this is definitely less than 10,000 (the original is not greater than 1794). Why is it still so high? Should I do anything else to reduce the viewstate load coming from my datagrid? By the way, when the Datagram is full, then there are approximately 1600 rows and 27 columns.
ViewState [] for sorting purposes (very bad practice), which I have yet to find in all my data stores
__Vistat < / Code> Hidden area.
ViewState [] because I was lazy to retrieve / retrieve the search options field and re-query for sorting, the result is realizing did not do. In fact, with my datagrid,
EnableViewState = "true" was double in size, my
__VEWSTATE . I learned a lot from this mistake, and I hope That it learns anything to anyone else.
Comments
Post a Comment