State Maintanance Summary
Examples of server side state maintinance are: session state, profile properties, database support, and application state.
What are the 3 options for state maintenance?
What is the view state method?
The view state method automatically preserves the values of the controls on a page (using a structure that resides in the pages source code) so that we can retrieve and use those values after a postback to the server that requests the same page.
View state data is hashed, compressed, encoded, and stored in a structure on the client in the page’s source code.
View state is turned on by default.
Name some of the advantages of using the view state method.
16.2 - LIST - Name some of the disadvantages of using the view state method.
Since view state data is stored in a page’s source code:
What is the cookies state method?
Cookies is a state-maintenance method that permits us to programmatically preserve the values of the controls on a page (using the client’s memory or using a file that resides on the client’s hard drive) so that we can retrieve and use those values on subsequent pages of the application.
There are two types of cookies. Nonpersistent cookies and persistent cookies.
What is the difference between persistent and non persistent cookies?
Name the advantages of using the cookies state method?
Name the disadvantages of using the cookies state method?
What is the query string state method?
Query string is a method that permits us to programatically preserve the values of the controls on a page (using a string that is appended to the pages URL) so that we can retreive and use those values on subsiquent pages.
Name the advantages of using the query string state method.
Name the disadvantages of using the query string state method.
What is the session state method?
Session state is a state-maintenance method that permits us to programmatically preserve the values of the controls on a page (using an object that resides in memory on the server) so that we can retrieve and use those values on subsequent pages of the application.
Name the advantages of using the session state method.
Since session state is class based:
Name the disadvantages of using the session state method.