ViewState Performance Optimization

Excluding ViewState from Traffic

ViewState is a mechanism to store ASP.NET page state information between consecutive requests without using server resources. ViewState is a binary state stored in textual form within the hidden form field on a page that is transferred back and forth between the client and server in every request and response. ViewState is used mainly to make the server ASP.NET controls more stateful and thus to look more "intelligent." Developers can include other information in the ViewState, such as page business objects. The downside of ViewState is that it creates an additional load on the server and additional network traffic.

Web Stimulus mitigates these downsides of ViewState without the need to recode. It creates two main benefits. First, it completely excludes ViewState from the download traffic without any additional load on the server by storing ViewState on the client. ViewState does not have to be transferred to the client and is not even required with the first response, since it is generated by the client code.

Secondly, in many cases ViewState also can be excluded from the request to the server. When ViewState information is not used in the server code it can be simply excluded from the request. The developer should try to include manipulation of ViewState information in the client part of the page when splitting the page code. It is still necessary to return ViewState to the server when ViewState information is used by the server code, for example to update a database. However, since Web Stimulus compresses post request, you can expect 4-6 times reduction in Viewstate upload traffic.

Technology Highlights

All-Tiers Acceleration Tool. Web Stimulus is used to effectively resolve the performance bottlenecks of any ASP.NET application on all tiers. more...

Fewer Limitations. Web Stimulus removes many web application limitations and solved many web performance problems. more...

Page Lifecycle. Web Stimulus adds another dimension to the ASP.NET page lifecycle. It facilitates the page's second ASP.NET lifecycle on the client. more...

Page State. Web Stimulus raises web page statefulness to a new level. It automatically allows restoring not only the state of controls, but also the state of any other page member. more...

Cached Page Lifecycle. Web Stimulus maximizes page efficiency by assembling it on the client using valid cached page elements and elements downloaded from the server. more...

Optimizing ViewState. Web Stimulus completely removes ViewState from the download traffic and reduces its payload 3-5 times in the upload traffic. more...