发信人: dongbao()
整理人: dongbao(2000-10-28 10:36:09), 站内信件
|
例子:
<%@ OutputCache Duration="60" %>
Duration就是这个页在缓冲中保存秒数,此处为60秒。
下面是利用缓冲的程序页例子
代码:
---------------------------------------------------------------------- ----------
<%@ OutputCache Duration="10" %><html> <script language="C#" runat="s erver"> void Page_Load(Object sender, EventArgs e) { TimeMsg .Text = DateTime.Now.ToString(); } </script> <body> <h3><f ont face="Verdana">Using the Output Cache</h3> <p>Las t generated on: <asp:label id="TimeMsg" runat="server"/> </bo dy></html>
---------------------------------------------------------------------- ----------
---------------------------------------------------------------------- ----------
作 者:JJX
参考链接:CNScript.com
-- ICQ:43395237 OICQ:126132
我自豪我用正版,我骄傲我用盗版!!!
※ 来源:.月光程序代码网 http://www.moon-soft.com.[FROM: 202.108.0.4]
|
|