© 2016, Mike Murach & Associates, Inc. Chapter 8 © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. Objectives © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. Objectives (cont.) © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. View state concepts © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
View state concepts (cont.) © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Two cases when you may want to disable view state © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
How to disable view state © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
How to enable view state for selected controls © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
How to determine the size of view state for a page © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Common indexer of the StateBag class © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A statement that adds or updates a view state item © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A statement that retrieves the value of a view state item © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Common indexer of the HttpSessionState class © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A statement that adds or updates a session state item © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The page events that can be used to get and save session state data © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A Load event handler that gets the session state object named cart © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A Click event handler that updates the cart object © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A PreRender event handler that updates a value in the cart object © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Four modes for storing session state data © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Two options for tracking session IDs © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Attributes of the session state element in the Web.config file © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. A sessionState element in the Web.config file that uses in-process mode © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. Application concepts © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. Cache concepts © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Application state concepts © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Common indexer of the HttpApplicationState and Cache classes © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The Insert method of the Cache class © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Common methods of the HttpApplicationState class © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Two statements that add items to application state and cache © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Two statements that retrieve an item from a non-page class © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. A statement that adds an item to cache with an absolute expiration time © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Four common application events © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A Global.asax file that creates an object in application state © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A Global.asax file (cont.) © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. Examples of cookies © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Two ways to create a cookie © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Code that creates a session cookie © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The HttpCookieCollection class © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. A method that creates a new cookie and adds it to the HttpResponse object © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. A method that retrieves the value of a cookie from the HttpRequest object © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A method that deletes a persistent cookie © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
An IE dialog box with disabled cookies © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
How to enable or disable cookies for Internet Explorer © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
How to enable or disable cookies for Google Chrome © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
How to enable or disable cookies for Mozilla Firefox © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Two URLs with query strings © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
A hyperlink with a URL that includes a query string © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Statements that retrieve the values of the query string attributes © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Code that uses a URL with a query string in a Redirect method © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. An SEO-friendly URL © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
An Order page that uses a cookie and application state © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
© 2016, Mike Murach & Associates, Inc. The CheckOut page © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The aspx code for the welcome message and the footer on the Order page © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The critical C# code for the Order page © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The critical C# code for the Order page (cont.) © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
The critical C# code for the Check Out page © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Extra 8-1 Use session state to store reservation data © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015
Extra 8-2 Use cookies to store user information © 2016, Mike Murach & Associates, Inc. Murach's ASP.NET 4.6 with C# 2015