ASP+頁緩存OutputCache Duration用法(指定頁面過時時間) - 中國WEB開發者網絡 (http://www.webasp.net) -- 技術教程 (http://www.webasp.net/article/) --- ASP+頁緩存OutputCache Duration用法(指定頁面過時時間) (http://www.webasp.net/article/1/606.htm) |
| -- 作者:未知 -- 發佈日期: 2003-04-15 |
| 例子:
<%@ OutputCache Duration="60" %> 就是這個頁在緩衝中保存60秒。 下面是利用緩衝的程序頁例子 <%@ 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> |
| webasp.net |