How does ASP prevent frequent page refreshes?

Source: Internet
Author: User

<%
Dim refreshintervaltime
Refreshintervaltime = 3' indicates the number of seconds to prevent refresh. 0 indicates no
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 ("refreshing 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> How does ASP prevent frequent page refreshes? -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;">
How does ASP prevent frequent page refreshes? -www.zhangpeng.com.cn
</Body>
</Html>

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.