views:

82

answers:

3

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

Thanks

+6  A: 
  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.
Sundararajan S
+4  A: 

To view it in the page at the bottom of each request you can enable page level tracing like:

<%@ Page Trace="true" %>

You can read more about this technique here:

rtpHarry
+6  A: 

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

alt text

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

Martin Vobr