ASP.NET Page Life Cycle, Storing Simple Data Types and Objects in the ViewState

One of the most interesting features of ASP.NET 2.0 is the open way it allows the programmer to manipulate a control’s ViewState. The ViewState should be the first choice to save data to access across postbacks.

If the information is to be shared across different controls, it can be placed in the ViewState of the page, if it is to be accessed within the scope of a single control, and then it can be placed within the ViewState of the control. The type of info one can save here may be simple data types or even complex user defined objects!,-Storing-Simple-Data-Types-and-Objects-in-the-ViewState


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s