Fixing bottlenecks

Now that you have pinpointed the bottlenecks to prioritize, skip to the appropriate subsection to find out how to fix those bottlenecks.

ViewState

ViewState is such an integral part of the ASP.NET environment that it is very easy to get to a situation where your pages are carrying more ViewState than they need to.

This section first shows how to find out which controls are responsible for most of the ViewState on a page. You then see how to disable ViewState. After that, we get to solutions for actually reducing ViewState.

Tip

Preserving state by preventing refreshes

Remember that ViewState is a way to remember the state of controls on the page across page refreshes. This means that you can get rid of ViewState completely if you ...

Get ASP.NET Site Performance Secrets now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.