Click here to Skip to main content
Click here to Skip to main content

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

, 27 Sep 2012 CPOL
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...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

16 May 2012
Athar Raza Faridi
2 alternatives  
Is there any specific harm or drawback if we use Session state in SharePoint 2010 ? Actually we have a scenario in which we have to perceive the 100 rows (with seven column in each row) in a DataTable and perceive its values during the page refresh call that is being made on close of the...
17 May 2012
Not Active
Session is disabled by default in SharePoint. One reason is the memory usage may be invoked by thousands of users accessing the system. Although it can be enabled and set to use SQL Server, it isn't a recommended or common practice with SharePoint.If the goal is to persist the data so it is...

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.

| | Privacy | Terms of Use | Mobile
Web02 | 2.8.150327.1 | Last Updated 27 Sep 2012
Article Copyright 2012 by pstickne
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid