ASP implementation waits a few seconds to automatically return the page effect

Source: Internet
Author: User
My requirements: After the update and other operations, after the prompt page, delayed 2 seconds, back to the original operation of the page (updated) Focus on the prompt page "OK." ASP ". The interface is as follows




Program:

Program code
......
<%
Dim come
Come=request.querystring ("Come")
%>
<meta Http-equiv=refresh content= ' 2; Url=<%=come%> ' >
<title> Background Management </title>
<style type= "Text/css" >
......

The action page response after the operation completes. Redirect "ok.asp?come= Action page"

If just want to load the page is the most recent page reread, you can use the cache to prevent the page to achieve, the page as long as the open must update the data, rather than keep the original data unchanged, equivalent to a refresh.

--The following disable caching module is added at the beginning of the page--

<%
Response.CacheControl = "No-cache"
Response.AddHeader "Pragma", "No-cache"
%>


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.