Showing posts with label Page Fragment. Show all posts
Showing posts with label Page Fragment. Show all posts

Thursday, 18 October 2012

How can cache different version of same page using ASP.NET cache object ?

Output cache functionality is achieved by using “OutputCache” attribute on ASP.NET page header. Below is the syntax

<%@ OutputCache Duration="20" Location="Server" VaryByParam="state" VaryByCustom="minorversion" VaryByHeader="Accept-Language"%>




  • VaryByParam :- Caches different version depending on

Wednesday, 7 March 2012

What are different types of caching using cache object of ASP.NET?

You can use two types of output caching to cache information that is to be transmitted to and displayed in a Web browser:

Page Output Caching


Page output caching adds the response of page to cache object. Later when page is requested page is displayed from cache rather than creating the page object and displaying it. Page output caching is good if the site is fairly static.



Page Fragment Caching