Cache duration (C#) : OutputCache « Page « ASP.Net






Cache duration (C#)

<%@Page Language="C#"%>
<%@OutputCache Duration="10" VaryByParam="none" %>
<html>
<body>

<asp:panel id="pnlTest" runat="server">
  Page executed: <% = DateTime.Now %>
</asp:panel>

</body>
</html>

           
       








Related examples in the same category

1.Get server time (C#)
2.Using the OutputCache Directive (VB.net)
3.Asp cache by browser