Explain how to implement Fragment Cache - ASP.NET

Explain how to implement Fragment Cache

Fragment cache is to store user controls individually within a web form in cache instead of the whole webform as such. The idea is to simply have different cache parameters for different user controls.
control1:
<%@ OutputCache Duration="40" VaryByParam="none"%>

control2:
<%@ OutputCache Duration="60" VaryByParam="none"%>

If control1 and control2 exist on a single webform together, the values of control1 and control2 would be cached for different durations based on @OutputCache directive.
Explain the various modes of storing ASP.NET session.
Various modes of storing ASP.NET session - Types of sessions...
Benefits and limitations of using hidden fields - ASP.NET
What are the benefits and limitations of using hidden fields? - Easy to implement..
What are the benefits and limitations of using Hidden Frames? - ASP.NET
Benefits and limitations of using Hidden Frames - Hidden frames allow you to cache more than one data field....
Post your comment