开发者

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

开发者 https://www.devze.com 2022-12-22 06:17 出处:网络
Is there any firefox addon which can display my a开发者_StackOverflow社区sp.net page viewstate size.... Any suggestion...Yes, google shows Firefox Viewstate SizePerhaps this won\'t work in your situat

Is there any firefox addon which can display my a开发者_StackOverflow社区sp.net page viewstate size.... Any suggestion...


Yes, google shows Firefox Viewstate Size


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


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);
}


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

0

精彩评论

暂无评论...
验证码 换一张
取 消