CHAPTER 32

image

Stateful Controls

One of the underlying issues in any web application framework is the need to create a consistent and persistent user experience across a set of stateless HTTP requests—something that is handled by state data. In Chapter 18, we showed you the different state features that ASP.NET provides, and in this chapter we return to that theme to explain the options available for controls. In particular, we describe the view state feature, which is one of the most widely misunderstood and misused features that ASP.NET provides.

Preparing the Example Project

For this chapter we have created a project called ControlState using ...

Get Pro ASP.NET 4.5 in C#, Fifth Edition 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.