ASP .NET - Substitution and page output (donut) caching - How to pass custom argument to HttpRespons
- by zzare
I would like to use substitution feature of donut caching.
public static string GetTime(HttpContext context)
{
return DateTime.Now.ToString("T");
}
...
The cached time is: <%= DateTime.Now.ToString("T") %>
<hr />
The substitution time is:
<% Response.WriteSubstitution(GetTime); %>
...But I would like to pass additional…