'**************************************
' Name:asp Pause
' Description:to pause ASP operations in
' A page for certain amount of time.
For example:waiting for XML posts to the webpages to deliver a correct result.
' By:matthew Franz
'
' Inputs:amount of Time to pause
'
' Side effects:this code would change the
' Session.Timeout feature to ensure ' Y
' ou are allowing enough time for the Paus
' E.
'
' This code is copyrighted and has ' limited warranties. Please http://w
' Ww.planet-source-code.com/xq/asp/txtcode
' Id.8232/lngwid.4/qx/vb/scripts/showcode.
' htm ' for details. '**************************************
Function Pause (Amount)
' Check for Pause Amount exceeding Defaul
' t ASP timeouts, Reset the Session.timeou
' t
If Amount > Then session.timeout = Amount
Start = Timer
Do Until Start + Amount = Timer
Loop
Pause = Amount
End Function
' Page begins here
Amountpausedfor = Pause (5)
Response.Write "We paused for" & Amountpausedfor & "seconds."
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