Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 网站建设 > ASP > ASP+页缓存OutputCache Duration用法(指定页面过时时间)
【标  题】:ASP+页缓存OutputCache Duration用法(指定页面过时时间)
【关键字】:c,C,ASP,io,时间,缓存,AS,on,at,ASP,OutputCache,Duration
【来  源】:网络

ASP+页缓存OutputCache Duration用法(指定页面过时时间)

Your Ad Here 例子:
<%@ 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>

ASP+中执行简单的Select查询,并返回数据表到DataGrid源程序:【上一篇】
ASP+中GetTitleAuthors和PutTitleAuthors应用例子:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • Ice core以及Ice services
  • 基于ARM智能交通信号机控制板开发
  • 在VB中使用水晶报表的一种简易编程方法
  • 爱机中毒自救六招
  • BP网络JAVA版
  • Linux防火墙上的Apache反向代理 (2)
  • 关于ntfs和内核问题
  • 程序人物:人件管理与程序员豫让故事
  • sendmail.cf文件解释
  • FREEBSD 6.0硬盘安装方法
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 软讯网络 All Rigths Reserved.