2008 application bandwidth blade bladesystem csUriQuery csUriStem database dedicated disposal download edition error Exchange express filter google hosting hotfix hp IIS IIS7 iscsi KB linux manufacturing memory microsoft mpio msn multipath oil performance proliant query quota recovery release server solid solvent speed SQL sqlserver state system togo web windows yahoo

Radically speed up your ASP.NET page

Disambiguation 'SavePageStateToPersistenceMedium', 'SavePageStateToPersistenceMediums'

Your search yielded multiple results, here are top results:
Radically speed up your ASP.NET page


p>In previous article on this site I discuss ways to minimize amount of data stored in view state. The process of eliminating unwanted data is lengthy and at times, you will not be able to control what goes to view state (imagine third party objects over which you have no control). Sometimes you just have to store large amounts of view state because your form needs it. What can you do to improve speed with so much data in view state?

Persistence Medium

System.Web.UI.Page supports following data persistence methods:

LoadPageFromPersistenceMedium
SavePageStateToPersistenceMedium

In default implementation, these two methods save view state into hidden field __VIEWSTATE on the actual web form. This is by design. But the design isn't always the best. We will explore how we can adjust functionality behind these methods to benefit us.

Scroll down for additional info labeled Server Session and saving it in memory rather than web page

More info: Server Session and saving it in memory rather than web page

permanent link to article http://freecash.hogger.net/radically_speed_up_your_asp_net_page

Server Session

If you are running on single server instance or isolated server, your server session is saved in memory allocated on the server. If you have plenty of memory available in comparision to size of ViewState and number of concurrent sessions, you could save view state in server session state.

Save it in Memory

Here is simplest way of saving view state in persistence medium:

protected override object LoadPageStateFromPersistenceMedium()
{
  return Session["ViewState"];
}

protected override void SavePageStateToPersistenceMedium(object viewState)
{
  Session["ViewState"] = viewState;
}

And that's all. Simple change will ensure that __VIEWSTATE is saved empty in output page.

If you need to make your viewstate smaller, check out previous article

2008 July Keyword Searches Page 12
2008 July Keyword Searches Page 13
FIX: You cannot use an ISAPI filter to change the uri-stem field or the cs-user field in an IIS 7.0 log
Tomcat connector isapi_redirect.dll does not handle watchdog_interval properly when not initialized or set to zero (off)
View State can really mess you up if you're not careful
UPS (uninterruptable power supply)
USB 3.0 will bring tenfold increase in speed
Transactional Memory and Intel STM compiler - how does it work
IIS7 on Vista and 2003/2008 Server various versions
Software Project Management