Mega Code Archive

 
Categories / ASP.Net / Session Cookie
 

Output Cache Duration (VB net)

<%@ Page Language="vb" %> <%@ OutputCache Duration="60" VaryByParam="name" %> <html> <head> <title>Output Cache Demonstration</title> <script runat="server" >    Sub Page_Load(Sender As Object, e As EventArgs)       lblMessage.Text = "Current time is: " & _          DateTime.Now()    End Sub </script> </head> <body>     <h1>Demonstration of Output Caching</h1>    <form id="frmPostBack" runat="server">       <asp:label id="lblMessage" runat="server"/>    </form> </body> </html>