Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is there any Firefox Addon to find ASP.NET page viewstate size?

Is there any firefox addon which can display my asp.net page viewstate size.... Any suggestion...

like image 595
ACP Avatar asked Mar 10 '10 07:03

ACP


3 Answers

Yes, google shows Firefox Viewstate Size

like image 89
David_001 Avatar answered Nov 14 '22 09:11

David_001


Perhaps this won't work in your situation but have you tried just enabling tracing on the page in question?

http://msdn.microsoft.com/en-us/library/94c55d08(VS.71).aspx

like image 37
Spencer Ruport Avatar answered Nov 14 '22 08:11

Spencer Ruport


Alternative to work in any browser is to show view state size on the window.status bar, this saves you having to open refresh any external windows.

For example on my base page I do this:-

protected override void OnPreRender(System.EventArgs e)
{
  #if DEBUG
  ClientScript.RegisterStartupScript(typeof(string), "ViewStateSize", "<script language='javascript'>window.status='ViewState size: ' + document.forms[0].__VIEWSTATE.value.length;</script>" );
  #endif
  base.OnPreRender(e);
}
like image 45
Rippo Avatar answered Nov 14 '22 10:11

Rippo