Do you know that? IT systems support professionals, marketing professionals and editors are more likely to earn less when they go solo. 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.