日期:2014-04-26 浏览次数:22603 次
<%@ OutputCache Duration="40" VaryByParam="none" %>
<asp:Substitution ID="Substitution1" runat="server" MethodName="Get"
onload="Substitution1_Load" onunload="Substitution1_Unload" />
<asp:Label ID="Label1" runat="server" Text="Label"></asp:Label>
protected void Page_Load(object sender, EventArgs e)
{
Label1.Text = "被缓存的内容是" + DateTime.Now.ToString();
}
public static String Get(HttpContext Hcontext)
{
string str = "动态更新的内容" + DateTime.Now.ToString();
return str;
}