ASP.NET ViewState Optimization / Analysis Tools

Are there any tools for parsing controls on an ASP.NET page to make sure they don't need to use viewstate?

We are trying to optimize the site written in C # asp.net 3.5, and would like to see if the tool will automatically analyze the project and give recommendations.

+4
source share
2 answers

I am not familiar with tools specifically designed for analyzing ViewState of different elements on asp.net page.

I almost never save the ViewState of table elements such as DataGrid or GridView, as these elements have HUGE ViewState objects that are no longer needed in most cases. You need to think logically what element state you need to save for the user.

You can also turn on 'Trace', proxy sniffer tools like Fiddler and various performance add-ons (like YSlow for FireFox) to see if you are re-sent to the server on every call and how long you return, where is the main time takes time and try to figure out which data is not needed.

Good article on improving asp.net web application performance: http://www.dotnetfunda.com/articles/article45.aspx

+2
source

The only thing I know is the FireFox extension called Viewstate size , which displays the size of the viewport in the bottom status bar of the browser. You can see the size on the unmodified page, make some changes to the code and update the browser to see if your changes have changed the size of the view.

0
source

Source: https://habr.com/ru/post/1333241/


All Articles