Click here to Skip to main content
15,886,519 members
Articles / Web Development / ASP.NET

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

Rate me:
Please Sign up or sign in to vote.
0.00/5 (No votes)
27 Sep 2012CPOL 0  
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.

Please Sign up or sign in to vote.
16 May 2012Athar 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...
Please Sign up or sign in to vote.
17 May 2012Not 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)


Written By
Web Developer
United States United States
This member doesn't quite have enough reputation to be able to display their biography and homepage.

Comments and Discussions