<%if (itemRemoved)
{
Response.Write("RemovedCallback event raised.");
Response.Write("
");
Response.Write("Reason:" + reason.ToString() + "");
}
else
{
Response.Write("Value of cache key:" + Server.HtmlEncode(Cache["Key1"] as string) + "");
}
%>
来源:csdn