Click here to Skip to main content
12,823,312 members (46,905 online)
Click here to Skip to main content
Add your own
alternative version

Stats

1 view
Posted 27 Sep 2012

Pros and Cons of Session state and View state in SharePoint webpart

, 27 Sep 2012 CPOL
Rate this:
Please Sign up or sign in to vote.
I use ViewState all the time.And it works good, PROVIDED that the SIZE of the data is "reasonably bounded" for the given network-access scenarios.So the question is, "HOW BIG?" is the data when PERSISTED to the ViewState hidden field? If this is "too big" or not depends primarly upon...
I use ViewState all the time.

And it works good, PROVIDED that the SIZE of the data is "reasonably bounded" for the given network-access scenarios.

So the question is, "HOW BIG?" is the data when PERSISTED to the ViewState hidden field? If this is "too big" or not depends primarly upon network conditions; the ultimately issue with ViewState isn't that it must be downloaded, but rather that it must be sent BACK with each request - and connections are sometimes asymmetric in performance.

Just avoid using a DataTable as the default Serialization it uses works poorly with the serializer used in ASP.NET (which is quite efficient for primitive structure trees and collections that don't muck with a custom serialization).

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

pstickne
Web Developer
United States United States
I program for fun--not money. Yes, I'm an amateur, and I prefer loosely-typed "fun" languages like Perl and Ruby.

You may also be interested in...

Comments and Discussions

 
-- There are no messages in this forum --
Permalink | Advertise | Privacy | Terms of Use | Mobile
Web02 | 2.8.170308.1 | Last Updated 27 Sep 2012
Article Copyright 2012 by pstickne
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid