用Asp如何实现防止网页频繁刷新?

所属分类: 网络编程 / ASP编程 阅读数: 1006
收藏 0 赞 0 分享
<%
    dim RefreshIntervalTime
    RefreshIntervalTime = 3 '防止刷新的时间秒数,0表示不防止
    If Not IsEmpty(Session(“visit“)) and isnumeric(Session(“visit“)) and int(RefreshIntervalTime) > 0 Then
     if (timer()-int(Session(“visit“)))*1000 < RefreshIntervalTime * 1000 then
      Response.write (“<meta http-equiv=““refresh““ content=“““& RefreshIntervalTime &“““ />“)
      Response.write (“刷新过快,请稍候“)
      Session(“visit“) = timer()
      Response.end
     end if
    End If
    Session(“visit“) = timer()
    %><!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN“>
    <html>
    <head>
    <title>Asp如何防止网页频繁刷新-wwww.zhangpeng.com.cn</title>
    <meta http-equiv=“Content-Type“ content=“text/html; charset=gb2312“>
    <link rel=“stylesheet“ type=“text/css“ href=“style.css“>
    <style type=“text/css“>
    </style>
    </head>
    <body style=“background-color:#666666;font-size:36pt;font-family:黑体;color:#FFFFFF;“>
    Asp如何防止网页频繁刷新-www.zhangpeng.com.cn
    </body>
    </html>
更多精彩内容其他人还在看

ASP 指南

ASP 指南
收藏 0 赞 0 分享

改进 ASP 的字符串处理性能

改进 ASP 的字符串处理性能
收藏 0 赞 0 分享

pjblog2的参数第1/2页

pjblog2的参数
收藏 0 赞 0 分享

ASP智能搜索的实现

ASP智能搜索的实现
收藏 0 赞 0 分享

网站生成静态页面攻略2:数据采集

网站生成静态页面攻略2:数据采集
收藏 0 赞 0 分享

网站生成静态页面攻略3:防采集策略

网站生成静态页面攻略3:防采集策略
收藏 0 赞 0 分享

网站生成静态页面攻略4:防采集而不防搜索引擎策略

网站生成静态页面攻略4:防采集而不防搜索引擎策略
收藏 0 赞 0 分享

简单分页函数一 常用

简单分页函数一 常用
收藏 0 赞 0 分享

asp最常用的分页函数

asp最常用的分页函数
收藏 0 赞 0 分享

LINE9的目录浏览源程序

LINE9的目录浏览源程序
收藏 0 赞 0 分享
查看更多