最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
PAUSE,PAUSE,PAUSE Function for ASP~~~
时间:2022-07-02 23:57:53 编辑:袖梨 来源:一聚教程网
'**************************************
' Name: ASP Pause
' Description:To pause ASP operations in
' a page for certain amount of time.
For example: waiting for XML posts to other webpages to deliver a correct result.
' By: Matthew Franz
'
' Inputs:Amount of time to pause
'
' Side Effects:This code will change the
' Session.Timeout feature to ensure that y
' ou are allowing enough time for the paus
' e.
'
'This code is copyrighted and has ' limited warranties.Please see 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 > 300 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."
' Name: ASP Pause
' Description:To pause ASP operations in
' a page for certain amount of time.
For example: waiting for XML posts to other webpages to deliver a correct result.
' By: Matthew Franz
'
' Inputs:Amount of time to pause
'
' Side Effects:This code will change the
' Session.Timeout feature to ensure that y
' ou are allowing enough time for the paus
' e.
'
'This code is copyrighted and has ' limited warranties.Please see 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 > 300 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."
相关文章
- 2024金摇杆奖年度游戏名单 11-22
- 用针在纸上绣画是哪种非遗技艺 蚂蚁新村11月21日答案最新 11-22
- 重返未来1999纸信圈儿什么时候up 为什么故事集卡池活动介绍 11-22
- 重返未来1999雾中盛会怎么玩 UTTU聚光专栏雾中盛会活动介绍 11-22
- 光遇姆明季后续版本怎么玩 光遇音乐节宴会节活动介绍 11-22
- 无期迷途四星装束是谁 无期迷途首个四星装束剪影介绍 11-22