ASP.NET ViewState Tips and Tricks #2
- by João Angelo
If you need to store complex types in ViewState DO implement IStateManager to control view state persistence and reduce its size. By default a serializable object will be fully stored in view state using BinaryFormatter.
A quick comparison for a complex type with two integers and one string property produces the following results measured using…