"
 
 
 
ASP.NET (snapshot 2017) Microsoft documentation and samples

[How Do I:] Control the Caching of an ASP.NET Page Based Upon Custom Information

by Chris Pels

In this video Chris Pels shows how to control the criteria for caching an ASP.NET page based upon custom information. A sample page is created and then the OutputCache directive is used with the VaryByCustom attribute which contains a custom value. Next, the GetVaryCustomByString() method is overridden in the global.asax module which provides the handling of the custom attribute. In that method a string is returned that uniquely identifies the cached version of the page. Finally, there is a discussion about how caching using a custom value can be used in several ways for a web site.

▶ Watch video (12 minutes)





Comments ( )
<00>  <01>  <02>  <03>  <04>  <05>  <06>  <07>  <08>  <09>  <10>  <11>  <12>  <13>  <14>  <15>  <16>  <17>  <18>  <19>  <20>  <21>  <22>  <23
Link to this page: //www.vb-net.com/AspNet-DocAndSamples-2017/aspnet/web-forms/videos/how-do-i/how-do-i-control-the-caching-of-an-aspnet-page-based-upon-custom-information.htm
<SITEMAP>  <MVC>  <ASP>  <NET>  <DATA>  <KIOSK>  <FLEX>  <SQL>  <NOTES>  <LINUX>  <MONO>  <FREEWARE>  <DOCS>  <ENG>  <CHAT ME>  <ABOUT ME>  < THANKS ME>