zoukankan
html css js c++ java
ASP禁止刷新当前页
方法1:
<
%
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
%
>
方法2:
<
%
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
()
%
>
青苹果Web应用商店
https://webapp.taobao.com/
PHP/ASP.NET/ASP/UCHOME/DISCUZ! X系列网站开发,详细需求联系
QQ:8511978
查看全文
相关阅读:
实例教学在MySQL中若何导出整个数据库
在Linux下Turbomail简易快捷的装置方式
Fedora下编译mitscheme
Fedora 9可以不敌RedHat 9光辉
实用伎俩:Ubuntu Linux 8.04设置与优化
Linux下给WordPress建设伪静态
红旗桌面版本最新使用要领和题目问题解答100例5
知识管理系统红旗Linux/KM.Center
python 虚拟环境的安装
python 闭包
原文地址:https://www.cnblogs.com/Dicky/p/131082.html
最新文章
环境配置学习笔记
ArcGis实现Pan
ArcGis实现Pan
CentOS VPS 安装dante socks5 server
ArcEngine 绘图
ArcEngine 绘图
CentOS VPS 安装dante socks5 server
engine的工具中实现Snapping(捕捉)
红旗桌面版本最新操作举措和标题解答100例2
老手学堂:Linux下C言语编程的留神事情
热门文章
Ubuntu 8.04中直立Apache PHP MySQL基本情况
红旗桌面版本最新运用设施和问题解答100例4
红旗桌面版本最新行使流动和结果解答100例6
Linux软阵列的管理
Ubuntu把在效劳器领域起更主要的脚色
红旗桌面版本最新运用方式和问题解答100例3
Mysql 5.0.22 Cluster for RedHat AS4U2
红旗桌面版本最新操纵办法和结果解答100例1
Keepalived Nginx 规范表率就事下高可靠Linux系统计划
Ubuntu下装配第一人称射击游戏 Nexuiz 2.4.2(图)
Copyright © 2011-2022 走看看