ASP程序提醒:Active Server Pages 错误 'ASP 0113' 脚本超时
超时文件为/admin/HtmlSave.asp,代码如下:<%@LANGUAGE="VBSCRIPT"CODEPAGE="936"%><%Constdbdns="../...
超时文件为 /admin/HtmlSave.asp,代码如下:
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Const dbdns="../"%>
<!--#include file="chk.asp"-->
<!--#include file="../AppCode/fun/function.asp"-->
<!--#include file="../AppCode/fun/CreateHtml.asp"-->
<%
Cmd = Application("Html_Cmd")
sTime = Application("Html_sTime")
RsCount = Cdbl(Application("Html_RsCount"))
xCount = Cdbl(Application("Html_xCount"))
Tmp_xCount = Cdbl(Application("Tmp_xCount"))
Tmp_RsCount = Cdbl(Application("Tmp_RsCount"))
Select Case Cmd
Case "Index_Html"
Call Index_Html()
Response.Write("首页生成完毕")
Case "Article_Page_Html"
ID = Application("Html_ArrData")(0,xCount)
Call Article_Page_Html(ID)
Response.Write("内容页ID=" & ID & "生成完毕")
If xCount + 1 <= RsCount Then
Application("Html_xCount") = xCount + 1
Application("Tmp_xCount") = Tmp_xCount + 1
Call NextUrl("")
End If
Case "Article_List_Html"
PageNo = Request.QueryString("PageNo")
If PageNo = "" Then PageNo = "1"
PageNo = Cdbl(PageNo)
ClassID = Application("Html_ArrData")(0,xCount)
pLen = Application("Html_ArrData")(1,xCount)
Call Article_List_Html(PageNo,ClassID)
Response.Write("列表页ClassID=" & ClassID & ",PageNo=" & PageNo & "生成完毕")
If PageNo + 1 <= pLen Then
If PageNo = 1 Then
Application("Tmp_RsCount") = Tmp_RsCount + Cdbl(pLen) - 1
End If
Application("Tmp_xCount") = Tmp_xCount + 1
Call NextUrl(PageNo + 1)
Else
If xCount + 1 <= RsCount Then
Application("Html_xCount") = xCount + 1
Application("Tmp_xCount") = Tmp_xCount + 1
Call NextUrl(1)
End If
End If
End Select
Private Sub NextUrl(PageNo)
Response.Write("<meta http-equiv=""refresh"" content=""" & sTime & ";URL=?PageNo=" & PageNo & "&rnd=" & Now() & """ />")
End Sub
%>
<style type="text/css">
body{margin:0px; padding:0px; font-size:12px; color:#333;}
div{ color:#FF0000;}
</style>
<div style="border:1px solid #CCCCCC; width:454px; margin:20px; height:30px; position:relative; padding:1px;">
<div style="background-color:#0000FF; height:26px; width:<%=Int(Tmp_xCount/Tmp_RsCount*450)%>px; position:absolute; z-index:99;">
</div>
<div style="position:absolute; z-index:999; color:#FF0000; line-height:26px; width:450px; text-align:center;"><%=Tmp_xCount%>/<%=Tmp_RsCount%>(<%=Int(Tmp_xCount/Tmp_RsCount*100)%>%)
</div>
</div>
<%
Call CloseConn()
Set Rs = Nothing
Set Admin = Nothing
%>
帮忙看下怎么改一下啊 展开
<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<%Const dbdns="../"%>
<!--#include file="chk.asp"-->
<!--#include file="../AppCode/fun/function.asp"-->
<!--#include file="../AppCode/fun/CreateHtml.asp"-->
<%
Cmd = Application("Html_Cmd")
sTime = Application("Html_sTime")
RsCount = Cdbl(Application("Html_RsCount"))
xCount = Cdbl(Application("Html_xCount"))
Tmp_xCount = Cdbl(Application("Tmp_xCount"))
Tmp_RsCount = Cdbl(Application("Tmp_RsCount"))
Select Case Cmd
Case "Index_Html"
Call Index_Html()
Response.Write("首页生成完毕")
Case "Article_Page_Html"
ID = Application("Html_ArrData")(0,xCount)
Call Article_Page_Html(ID)
Response.Write("内容页ID=" & ID & "生成完毕")
If xCount + 1 <= RsCount Then
Application("Html_xCount") = xCount + 1
Application("Tmp_xCount") = Tmp_xCount + 1
Call NextUrl("")
End If
Case "Article_List_Html"
PageNo = Request.QueryString("PageNo")
If PageNo = "" Then PageNo = "1"
PageNo = Cdbl(PageNo)
ClassID = Application("Html_ArrData")(0,xCount)
pLen = Application("Html_ArrData")(1,xCount)
Call Article_List_Html(PageNo,ClassID)
Response.Write("列表页ClassID=" & ClassID & ",PageNo=" & PageNo & "生成完毕")
If PageNo + 1 <= pLen Then
If PageNo = 1 Then
Application("Tmp_RsCount") = Tmp_RsCount + Cdbl(pLen) - 1
End If
Application("Tmp_xCount") = Tmp_xCount + 1
Call NextUrl(PageNo + 1)
Else
If xCount + 1 <= RsCount Then
Application("Html_xCount") = xCount + 1
Application("Tmp_xCount") = Tmp_xCount + 1
Call NextUrl(1)
End If
End If
End Select
Private Sub NextUrl(PageNo)
Response.Write("<meta http-equiv=""refresh"" content=""" & sTime & ";URL=?PageNo=" & PageNo & "&rnd=" & Now() & """ />")
End Sub
%>
<style type="text/css">
body{margin:0px; padding:0px; font-size:12px; color:#333;}
div{ color:#FF0000;}
</style>
<div style="border:1px solid #CCCCCC; width:454px; margin:20px; height:30px; position:relative; padding:1px;">
<div style="background-color:#0000FF; height:26px; width:<%=Int(Tmp_xCount/Tmp_RsCount*450)%>px; position:absolute; z-index:99;">
</div>
<div style="position:absolute; z-index:999; color:#FF0000; line-height:26px; width:450px; text-align:center;"><%=Tmp_xCount%>/<%=Tmp_RsCount%>(<%=Int(Tmp_xCount/Tmp_RsCount*100)%>%)
</div>
</div>
<%
Call CloseConn()
Set Rs = Nothing
Set Admin = Nothing
%>
帮忙看下怎么改一下啊 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询