亚洲乱码中文字幕综合,中国熟女仑乱hd,亚洲精品乱拍国产一区二区三区,一本大道卡一卡二卡三乱码全集资源,又粗又黄又硬又爽的免费视频

如何處理超時事件?

 更新時間:2006年11月16日 00:00:00   作者:  

如何處理超時事件?


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

2、自定義時間。用程序設(shè)定超時事件的時間段:
<%
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
%>

 

相關(guān)文章

最新評論