Do you know that? Learn from criticism instead of shrugging it off. next

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.

Three parameters of OutputCache, has 3 parameters:

  • 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.