How Do I?

[How Do I:] Use OutputCache to Cache an ASP.NET Page

By Chris Pels|14 minutes|
In this video Chris Pels shows how to utilize the built-in caching of ASP.NET to store a page in the cache so it does not have to be re-rendered. First, the simplest form of page caching is demonstrated where the entire page is cached for a specified period of time. Next, a more granular approach is taken where the values of QueryString variables are used as the basis for caching pages. Finally, see how to have the type of browser be the basis for caching a page.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on February 5, 2009

Author Information

Chris Pels

Chris Pels – Chris has been instrumental in the architecture, development, and implementation of a wide variety of business systems and databases as a technology consultant since 1986. He has extensive experience in business analysis, technical specifications, database design, several programming languages including C# and VB.NET, and statistical analysis. He holds a Ph.D. from The University of Michigan and has been a speaker at Microsoft TechEd, Microsoft DevDays, VSLive, numerous events in New England