Knowsh.com

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

 

http://www.knowsh.com

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!

http://www.knowsh.com/NotesSearch/NotesDetail/100122/ASP.NET-Page-Life-Cycle,-Storing-Simple-Data-Types-and-Objects-in-the-ViewState

Advertisements

Leave a Reply

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

WordPress.com Logo

You are commenting using your WordPress.com 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 )

Google+ photo

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

Connecting to %s