Click here to Skip to main content
12,629,684 members (31,943 online)
Click here to Skip to main content
Add your own
alternative version



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...


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...


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


About the Author

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.161205.3 | Last Updated 27 Sep 2012
Article Copyright 2012 by pstickne
Everything else Copyright © CodeProject, 1999-2016
Layout: fixed | fluid