-
Book Overview & Buying
-
Table Of Contents
ASP.NET Site Performance Secrets
By :
Now that you have pinpointed the bottlenecks to prioritize, skip to the appropriate subsection to find out how to fix those bottlenecks.
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.
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 simply do not refresh the page and instead, always use AJAX-style asynchronous requests.
To explore this further, refer to chapter 11.
In the Pinpointing bottlenecks section, we learnt how to find the total...
Change the font size
Change margin width
Change background colour