ASP.NET 4 Granular View State

This article will explain how to control a view state at Page level as well as in control level. ASP.NET 4,0 has a property called “ViewStateMode” at control level. This property will let you turn FF the view state at Page level and turn ON view state at control level if it meets the requirements.

Do note that in ASP.NET 3.5, you can disable the view state at web application level from your web.config file. You cannot enable it at control or page level.

Read the rest of the tutorial and download the source code here:  http://www.devcurry.com/2011/05/aspnet-4-granular-view-state.html

Leave a Reply

Your email address will not be published. Required fields are marked *