How to Cache different version of same page? - ASP.NET

Show with an example how to Cache different version of same page using ASP.NET Cache object.

The ways to cache different versions on the same page using ASP.NET cache object is using OutputCache object.

Parameters of OutputCache:

VarByParam: based on input parameters passed through HTTP POST/GET.
VarByHeader: based on the page header content.
VayByCustom: based on declaration of an attribute and overriding GetVaryByCustomString handler.
VarByControl: varies with the value of properties of ASP objects.
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..
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..
Post your comment