Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ASP.NET - Viewstate Size

Is there a reliable method for viewing the size of the viewstate on any given postback?

like image 543
Brian Webster Avatar asked May 04 '10 22:05

Brian Webster


2 Answers

I would recommend using FireFox addon called "Viewstate Size". Quick, simple and convenient.

alt text

https://addons.mozilla.org/en-US/firefox/addon/5956/

like image 109
Martin Vobr Avatar answered Oct 09 '22 07:10

Martin Vobr


  1. Enable Trace in the web.config.
  2. Browse the application http:////Trace.axd
  3. In the "Control Tree" Section , sum up the ViewState Size and Control state Size of the controls.
like image 30
Sundararajan S Avatar answered Oct 09 '22 09:10

Sundararajan S