Monday, January 21, 2013

ASP.NET: How to check ViewState size

Just enter the following code in the console of firebug or chrome developer tools and press Enter. Or call the code upon a button click
alert("View state is " + document.forms[0]["__VIEWSTATE"].value.length+ " bytes");


No comments:

Post a Comment