I believe many people still don’t understand how to use Asp to prevent frequent refreshing of web pages. So in the next article, let’s take a look at the implementation method of Asp to prevent frequent refreshing of web pages. Interested friends, please refer to it.
<%
dim RefreshIntervalTime
RefreshIntervalTime = 3 'The number of seconds to prevent refreshing, 0 means not to prevent
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 ("Refresh too fast, please wait")
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>AspHow to prevent frequent refresh of web pages-www.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:bold;color:#FFFFF;">
AspHow to prevent frequent refresh of web pages - www.zhangpeng.com.cn
</body>
</html>
The above is a detailed analysis and introduction to the implementation method of Asp to prevent frequent refresh of web pages. Friends who need it can come and refer to it. I hope it will be helpful to everyone.