Like many features available in Microsoft's products, page ViewState in
ASP.NET works behind the scenes by default. However, unlike most other
features, ViewState can impact the pages we develop dramatically. The impact
may not only be in page size but also in server-side performance. Pages with
large ViewState can throw unexpected errors. Developers must understand what
factors affect page ViewState and the strategies to follow to gain maximum
benefit from this feature. Since there is no one strategy for all scenarios,
we will review two different scenarios.
First, you must understand the benefits of ViewState.The Web is a stateless
scenario. In the ASP world, developers often use hidden form fields to store
values to persist information across postbacks. Automatic state management is
a feature that enables server controls to repopulate their values on a
round-tri... (more)