Sign in
|
Join
Search
Varad, The .NET Guy!
Exploring the excitement of Microsoft .NET and much more..
Home
About
RSS
Atom
Comments RSS
Recent Posts
.NET Rocks - Great Source for all of us!
Visual Studio 2003 Service Pack 1 Now Available
Timeout Expired - Max Connection Pool
The IT Profession - 2010
Free Download: MSDN Library May 2006 Edition
Tags
.NET
ASP.NET
BizTalk Server
C#
Community News
Cryptography
Misc
My Profile
VB.NET
News
My home city forecast
Navigation
Home
Blogs
Favorite Blogs
Panopticon Central
The Grumpy Coder
.Net from INDIA
.Net dump yard
Room for reference
VSEditor
.NET Security Blog
Experiments in .NET
Microsoft Careers
VSExpress
VB FAQs
C# FAQs
BizTalk Blog
Thom Robbins
Jacob Cynamon
Lamont Harrington's SPS Blog
Kirk Allen Evans' Blog
ScottGu's Blog
Don Box's Spoutlet
Design Patterns for .NET
Favorite Links
MSDN BizTalk
Code Project
Custom Software for Business
DotNetFun
ASP.NET Developer Center
.NET Developer Journal
MSDN Magazine
MSDN Articles
Gotdotnet
.NET Architechture Center
FTPOnline
MS PAG
Archives
September 2006 (2)
August 2006 (1)
July 2006 (7)
June 2006 (3)
May 2006 (2)
April 2006 (2)
March 2006 (5)
February 2006 (2)
January 2006 (1)
December 2005 (1)
November 2005 (4)
October 2005 (7)
September 2005 (15)
August 2005 (6)
July 2005 (10)
June 2005 (1)
February 2005 (12)
January 2005 (9)
October 2004 (1)
September 2004 (12)
August 2004 (17)
July 2004 (17)
June 2004 (16)
ASP.NET View State - Contd..
There are certain cases where holding a state value in ViewState is not the best option. The most commonly used alternative is Session state, which is generally better suited for:
Large amounts of data.
Since ViewState increases the size of both the page sent to the browser (the
HTML payload
) and the size of form posted back, it's a poor choice for storing large amounts of data.
Secure data that is not already displayed in the UI.
While the ViewState data is encoded and may optionally be encrypted, your data is most secure if it is never sent to the client. So, Session state is a more secure option. (Storing the data in the database is even more secure due to the additional database credentials. You can add SSL for even better link security.) But if you've displayed the private data in the UI, presumably you're already comfortable with the security of the link itself. In this case, it is no less secure to put the same value into ViewState as well.
Objects not readily serialized into ViewState, for example, DataSet.
The ViewState serializer is optimized for a small set of common object types, listed below. Other types that are serializable may be persisted in ViewState, but are slower and generate a very large ViewState footprint.
Posted:
Jan 29 2005, 08:57 PM
by
Varad
| with
no comments
Filed under:
ASP.NET
Comments
No Comments