龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > asp编程 >

asp防刷新程序

时间:2012-12-31 22:56来源:未知 作者:admin 点击:
分享到:

asp防刷新程序

Public Sub PreventRefresh()
  Dim RefreshTime
  RefreshTime = 20
  If DateDiff("s", Session("UserRefreshTime"), Now()) < RefreshTime Then
   FoundErr = True
   Response.Write "<META http-equiv=Content-Type content=text/html; chaRset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=" & RefreshTime & "><br>本页面起用了防刷新机制,请不要在" & RefreshTime & "秒内连续刷新本页面<BR>正在打开页面,请稍后……"
   Response.end
  End If
 End Sub


精彩图集

赞助商链接