Manipulating the Page Output Cache Programmatically
HttpCachePolicy class can perform all the tasks that you can perform with the <%@ OutputCache %> directive.
The page is cached on the browser, proxy servers, and web server for 15 seconds.
File: Default.aspx
<%@ Page Language="C#" %>
Program OutputCache