Building a PreserveProperty Control in ASP.NET 2.0
Find out how to create a deterministic and declarative property persistence control that works without ViewState and provides transparent access to persisted properties and fields on your ASP.NET controls and pages.
by Rick Strahl
April 3, 2007
SP.NET provides a couple of page-level state persistence mechanisms in ViewState and the new ControlState.
While both mechanisms work, they both have some limitations in that they are not deterministic for the application developerViewState can be turned off and can be very bulky, and ControlState can be set only from within a control implementation. In this article I'll show another, more flexible state mechanism using a PreservePropertyControl that allows automatic persistence and restoration of field values automatically without requiring ViewState.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!