Partager via


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

Reference

LoadPrivateViewState
SavePrivateViewState

Concepts

Controlling Session State

Other Resources

Supporting View State
Creating ASP.NET Mobile Web Pages
Application Developer's Guide
Developing ASP.NET Mobile Web Pages
ASP.NET State Management