views:

21

answers:

3

I am looking for a tool to give me a byte count of ViewState after each postback (full or partial) to make sure that I'm not keeping any controls' states around unnecessarily. Is there a tool out there?

A: 

If you add the attribute Trace="true" to your page, it will output debug information including the view state when you browse the site. No plugin is required.

For Internet Explorer there is a plugin called Web Development Helper that shows view state information.

Mark Byers
+2  A: 

If you use fiddler, I recommend you this extension

http://blogs.msdn.com/nexpert/

It gives you information about viewstate size and many other performance items.

If you're not using fiddler... what are waiting for??? :-)

Claudio Redi
A: 

Yes, and it's called Viewstate Size.

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

Josh Kodroff