- Understanding How Web Forms Are Processed
- Performing Basic State Management in Web Applications
- Using Cookies
- Using Hidden Fields and Query Strings
- Working with the Session Object
- Working with the Application Object
- Setting Up Global Objects with the global.asax File
- Configuring the Application
- Summary
- Q&A
- Workshop
Summary
Today's lesson covered the state management features of ASP.NET, including cookies, the Application and Session objects, ViewState, hidden fields, and query strings. You saw how to use cookies to store items such as user preferences on the client computer. You also saw how to use strings and objects in Session and Application state on the Web server.
Today's lesson didn't give you enough information for you to decide when to use session state, ViewState, and application state. Day 12 will contain instructions for making an intelligent choice in your own state management approach.
You learned about the global.asax file and how to use it to specify which objects are stored in Session and Application state.
Today's lesson explained the order of events in a typical ASP.NET Web form as it's rendered to the client computer. You saw an example that read and modified the values of some simple Web controls on a Web form.
Last, today's lesson introduced the web.config file and explained how it's used to configure your ASP.NET Web site. You saw a simple example of a web.config file that set the timeout value for Session objects.
Tomorrow you will learn about Web controls in detail and how to use them in your Web forms to produce powerful Web applications.