ASP.Net/Session Cookie/OutputCache
Output Cache Duration (VB.net)
<source lang="csharp">
<%@ 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>
Demonstration of Output Caching
<form id="frmPostBack" runat="server"> <asp:label id="lblMessage" runat="server"/> </form>
</body> </html>
</source>