[How Do I:] Cache Portions of an ASP.NET Page

By Chris Pels|19 minutes|
In this video Chris Pels shows how to cache one or more portions of an ASP.NET page by implementing the OutputCache for user controls on the page. First, an ASP.NET page is created and cached using the OutputCache directive. Several user controls are then created and cached for different durations. The relationship between page cached duration and control cache duration is reviewed. The different criteria for caching controls are reviewed including an example of VaryByControl where nested user controls can control caching of their parent controls.

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

This article was originally created on February 12, 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