I would like to know what is the difference between ViewState["object"] and Page.Items["object"]?
Page.Items
is only used for the lifetime of the Asp.net page processing cycle. ViewState
, however, is posted back (because its written out to the form), so it is refreshed with each new page.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With