国产探花免费观看_亚洲丰满少妇自慰呻吟_97日韩有码在线_资源在线日韩欧美_一区二区精品毛片,辰东完美世界有声小说,欢乐颂第一季,yy玄幻小说排行榜完本

首頁 > 學院 > 編程設計 > 正文

如何處理超時事件?

2020-06-19 13:52:50
字體:
來源:轉載
供稿:網友

如何處理超時事件?


1
IIS為一個死循的執行過程設定執行時間(缺省為90秒)超時事件:
<%response.buffer=true%>
<body><html>
<%
DO
  counter=counter+1
  response.write counter & "<br>"
  response.flush
LOOP
%>
</body></html>

2、自定義時間。用程序設定超時事件的時間段:
<%
response.buffer=true
server.scripttimeout=20
%>
<body><html>
<%
DO
  counter=counter+1
  response.write counter & "<br>"
  response.flush
LOOP
%>
</body></html>

 

3、干涉超時時間段。捕獲超時:
<%@ trANSACTION=Required%>
<%
response.buffer=true
server.scripttimeout=20
%>
<html><body>
</body>
<%
DO
  counter=counter+1
  response.write counter & "<br>"
LOOP
response.flush
response.write "
腳本運行完啦!"
%>
</html>
<%
Sub OnTransactionAbort()
      response.clear
    Response.Write "
,腳本運行超時了!"
end sub
%>

    4
、繞過超時事件:
<%@ trANSACTION=Required%>
<%
response.buffer=true
server.scripttimeout=40
%>
<html><body>
</body>
<%
DO  UNTIL counter=400
  counter=counter+1
  response.write counter & "<br>"
LOOP
response.flush
response.write "
腳本運行完啦!"
%>
</html>
<%
Sub OnTransactionAbort()
      response.clear
    Response.Write "
,腳本運行超時了!"
end sub
%>

 

發表評論 共有條評論
用戶名: 密碼:
驗證碼: 匿名發表
主站蜘蛛池模板: 双桥区| 同德县| 兴隆县| 茌平县| 黎城县| 象州县| 红河县| 阜南县| 虹口区| 泗洪县| 中西区| 芜湖县| 张家界市| 晋城| 黄骅市| 普兰县| 凤山市| 文成县| 博爱县| 津市市| 三门峡市| 湖北省| 洛隆县| 渝北区| 思茅市| 长寿区| 东乡族自治县| 淅川县| 遂川县| 富源县| 新河县| 安阳市| 六枝特区| 沙田区| 行唐县| 定结县| 霍山县| 阿克| 防城港市| 香港| 疏附县|