日期:2009-07-27 浏览次数:20761 次
下面是利用缓冲的程序页例子
<%@ OutputCache Duration="10" %>
<HTML>
<script language="C#" runat="server">
void Page_Load(Object sender, EventArgs e) {
TimeMsg.Text = DateTime.Now.ToString();
}
</script>
<body>
<h3><font face="Verdana">Using the Output Cache</font></h3>
<p><i>Last generated on:</i> <ASP:label id="TimeMsg" runat="server"/>
</body>
</HTML>