Additional State Management Considerations

You cannot store state information in either static variables or member variables between requests. Static variables are shared across all requests to that page, so you never know in which request the value of the variable was set. Member variables lose their value, because the page is discarded after every response and rebuilt for every request.

See Also

Concepts

Controlling Session State

ASP.NET State Management Overview

Reference

LoadPrivateViewState

SavePrivateViewState

Other Resources

Supporting View State

Creating ASP.NET Mobile Web Pages

Application Developer's Guide

Developing ASP.NET Mobile Web Pages