ASP禁止刷新当前页的两种方法
来源:互联网 发布:打开软件显示乱码 编辑:程序博客网 时间:2024/05/18 01:54
<%
Dim SplitReflashPage
Dim DoReflashPage
dim shuaxin_time
DoReflashPage=true
shuaxin_time=10
ReflashTime=Now()
if (not isnull(session("ReflashTime"))) and cint(shuaxin_time)>0 and DoReflashPage then
if DateDiff("s",session("ReflashTime"),Now())<cint(shuaxin_time) then
response.write "<META http-equiv=Content-Type content=text/html; charset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=3>本页面起用了防刷新机制,请不要在<b><font color=ff0000>"&shuaxin_time&"</font></b>秒内连续刷新本页面<BR>正在打开页面,请稍候……"
response.end
else
session("ReflashTime")=Now()
end if
elseif isnull(session("ReflashTime")) and cint(shuaxin_time)>0 and DoReflashPage then
Session("ReflashTime")=Now()
end if
randomize timer
regjm=int(rnd*8998)+1000
%>
<%
Dim URL
If DateDiff("s",Request.Cookies("oesun")("vitistime"),Now())<2 Then
URL=Request.ServerVariables("Http_REFERER")
Response.Write("<meta http-equiv=""refresh"" content=""2;URL="&URL&""">")
Response.Write("防刷新,两秒后自动跳转")
Response.End
End IF
Response.Cookies("oesun")("vitistime")=Now()
%>
Dim SplitReflashPage
Dim DoReflashPage
dim shuaxin_time
DoReflashPage=true
shuaxin_time=10
ReflashTime=Now()
if (not isnull(session("ReflashTime"))) and cint(shuaxin_time)>0 and DoReflashPage then
if DateDiff("s",session("ReflashTime"),Now())<cint(shuaxin_time) then
response.write "<META http-equiv=Content-Type content=text/html; charset=gb2312><meta HTTP-EQUIV=REFRESH CONTENT=3>本页面起用了防刷新机制,请不要在<b><font color=ff0000>"&shuaxin_time&"</font></b>秒内连续刷新本页面<BR>正在打开页面,请稍候……"
response.end
else
session("ReflashTime")=Now()
end if
elseif isnull(session("ReflashTime")) and cint(shuaxin_time)>0 and DoReflashPage then
Session("ReflashTime")=Now()
end if
randomize timer
regjm=int(rnd*8998)+1000
%>
程序代码
<%
Dim URL
If DateDiff("s",Request.Cookies("oesun")("vitistime"),Now())<2 Then
URL=Request.ServerVariables("Http_REFERER")
Response.Write("<meta http-equiv=""refresh"" content=""2;URL="&URL&""">")
Response.Write("防刷新,两秒后自动跳转")
Response.End
End IF
Response.Cookies("oesun")("vitistime")=Now()
%>
- ASP禁止刷新当前页的两种方法
- ASP禁止刷新当前页
- ASP禁止刷新当前页
- asp.net获得当前页面名字的两种方法
- 禁止刷新本页的方法
- 两种禁止USB autosuspend的方法
- js刷新当前页的方法
- js刷新当前页的方法
- 刷新当前页面的几种方法
- asp.net实现DropDownList、ListBox无刷新三级联动的两种方法
- asp.net实现DropDownList、ListBox无刷新三级联动的两种方法
- 定时刷新客户端的两种方法
- 异步刷新Browser的两种方法
- 刷新UI的两种实现方法
- js调用打印当前页的两种方法
- 获取当前时间的两种方法
- 获取当前数据库的两种方法
- 刷新当前页面的方法
- JScript中的prototype(原型)属性研究
- Google Maps API编程资源大全
- Linux 环境下 Makefile 文件制作浅谈(一)
- Excel单元格中正确显示身份证号的技巧
- Linux 环境下 Makefile 文件制作浅谈(二)
- ASP禁止刷新当前页的两种方法
- 在ASP.NET中实现AJAX(1)(转载)
- 第14課 昨日 デパートへ 行って,買い物しました
- osCommerce
- 在ASP.NET中实现AJAX(2)(转载)
- 精心设置卡巴斯基 加快杀毒速度
- 涨跌停板
- CSS overflow
- 在ASP.NET中实现AJAX(3)(转载)