Chapter 23. State Management in ASP.NET

OBJECTIVES

  • Learn what state is and how you use it

  • Learn different methods of state management

  • Learn the advantages and disadvantages of each method

Web pages are, by definition, stateless. This means that as you move from page to page, the data from each page is automatically discarded. Because you might need data from one of these previous pages, you need to store that data (or state) as you move from one page to another. There are many techniques you can use to maintain state. Programmers today use Session variables, XML files, databases, and many other proprietary solutions.

State management capabilities are very primitive in ASP when compared to ASP.NET. In ASP, the Session object can only run in-process ...

Get ASP.NET Developer's JumpStart now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.