UserControls - Programatically setting output caching duration?

Posted by ParagM on Stack Overflow See other posts from Stack Overflow or by ParagM
Published on 2010-04-07T08:36:02Z Indexed on 2010/04/07 8:43 UTC
Read the original article Hit count: 216

Filed under:

I want duration to be configurable from Web.config file, so user can alter the output caching after deployment.

For achieving such puropse i need quuivalent C# codebehind snippet of following ASP.NET markup?

<%@ OutputCache Duration="120" VaryByParam="CategoryName" %>

© Stack Overflow or respective owner

Related posts about ASP.NET