Free mag vol1 | Page 53

 CONTENTS Summary .....................................................................................................................1428  Chapter 34: ASP.NET State Management Techniques.......................................1429 The Issue of State ........................................................................................................1429 ASP.NET State Management Techniques ....................................................................1431 Understanding the Role of ASP.NET View State ..........................................................1432 Demonstrating View State .................................................................................................................. 1432 Adding Custom View State Data ......................................................................................................... 1434 The Role of the Global.asax File...................................................................................1434 The Global Last-Chance Exception Event Handler.............................................................................. 1436 The HttpApplication Base Class.......................................................................................................... 1437 Understanding the Application/Session Distinction.....................................................1438 Maintaining Application-Level State Data .......................................................................................... 1438 Modifying Application Data................................................................................................................. 1440 Handling Web Application Shutdown ................................................................................................. 1442 Working with the Application Cache............................................................................1442 Fun with Data Caching ....................................................................................................................... 1443 Modifying the *.aspx File .................................................................................................................... 1445 Maintaining Session Data ............................................................................................1448 Additional Members of HttpSessionState ........................................................................................... 1450 Understanding Cookies................................................................................................1451 Creating Cookies................................................................................................................................. 1452 Reading Incoming Cookie Data........................................................................................................... 1453 The Role of the Element ....................................................................1454 Storing Session Data in the ASP.NET Session State Server ............................................................... 1454 Storing Session Data in a Dedicated Database .................................................................................. 1455 Introducing the ASP.NET Profile API ............................................................................1456 The ASPNETDB.mdf Database ............................................................................................................ 1456 li