Mega Code Archive
Categories
/
ASP.Net Tutorial
/
Cache
Expiring the Page Output Cache Programmatically
File: Default.aspx <%@ Page Language="C#" %> <%@ OutputCache Duration="3600" VaryByParam="none" %>
Product List
<%= DateTime.Now.ToString("T") %>
" SelectCommand="SELECT Title, Director FROM Products" Runat="server" />
Add Product
File: NextPage.aspx <%@ Page Language="C#" %>
Add Product
Add Product
" InsertCommand="INSERT Products (Title, Director) VALUES (@Title, @Director)" Runat="server" />