S
Sky
Although I've been using C# for the last month or so, and accepting out of
blind faith the ViewState, I do have some nagging questions about it... can
you help verify the following statements?
Application is across all sessions.
Session is across all pages.
ViewState is sort of like Session, but for only one page. <-- Correct
statement?
Session is stored between page requests, somewhere in mem or IIS files --
but can be rerouted to DB.
ViewState is sent to Client and returned on every post <-- Correct
statement?
If you load a DataSet.Table of 10 columns, 10 rows, and Bind it to a
DataGrid
you are sending to the Client 10x10 html cells of a table -- PLUS in the
ViewState 10x10 values encrypted. <--Correct statement?
If you load a DataSet.Table of 10 columns, 10 rows, and Bind it to a
DataGrid
but hide 7 columns you are sending to the Client 3x10 html cells of a
table -- PLUS in the ViewState 10x10 values encrypted. <--Correct statement?
Therefore, if you load a DataTable with 10 columns, 1000 rows, Bind it to a
DataGrid, but put Paging on 10 per page...
I am sending 10x10 html cells to the client -- PLUS 10x1000 cells in the
ViewState?????
If I DataBind a DataTable to a grid on page_load, I don't have to rebind it
again until I update the database, and have to repick up the new DataSet <-
Correct?
Any other comments you may have as to what it is, and "how to think of it"?
Thank you so much,
Sky
blind faith the ViewState, I do have some nagging questions about it... can
you help verify the following statements?
Application is across all sessions.
Session is across all pages.
ViewState is sort of like Session, but for only one page. <-- Correct
statement?
Session is stored between page requests, somewhere in mem or IIS files --
but can be rerouted to DB.
ViewState is sent to Client and returned on every post <-- Correct
statement?
If you load a DataSet.Table of 10 columns, 10 rows, and Bind it to a
DataGrid
you are sending to the Client 10x10 html cells of a table -- PLUS in the
ViewState 10x10 values encrypted. <--Correct statement?
If you load a DataSet.Table of 10 columns, 10 rows, and Bind it to a
DataGrid
but hide 7 columns you are sending to the Client 3x10 html cells of a
table -- PLUS in the ViewState 10x10 values encrypted. <--Correct statement?
Therefore, if you load a DataTable with 10 columns, 1000 rows, Bind it to a
DataGrid, but put Paging on 10 per page...
I am sending 10x10 html cells to the client -- PLUS 10x1000 cells in the
ViewState?????
If I DataBind a DataTable to a grid on page_load, I don't have to rebind it
again until I update the database, and have to repick up the new DataSet <-
Correct?
Any other comments you may have as to what it is, and "how to think of it"?
Thank you so much,
Sky