Mega Code Archive
Categories
/
ASP.Net Tutorial
/
Cache
Use post-cache substitution programmatically by using the Response WriteSubstitution() method
<%@ Page Language="C#" %> <%@ OutputCache Duration="15" VaryByParam="none" %>
Show WriteSubstitution
The cached time is: <%= DateTime.Now.ToString("T") %>
The substitution time is: <% Response.WriteSubstitution(GetTime); %>