在线急问啊?

Anrylxp 2004-12-23 11:07:01
(
Microsoft VBScript 编译器错误 错误 '800a03f6'

缺少 'End'

/iisHelp/common/500-100.asp,行242

Active Server Pages 错误 'ASP 0113'

脚本超时

/city03/Default.asp

超过了脚本运行的最长时间。您可以通过指定 Server.ScriptTimeOut 属性值来修改此限制或用 IIS 管理工具来修改它。
...全文
76 5 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
mzhmark 2004-12-23
  • 打赏
  • 举报
回复
不是吧代码怎么写成这样的
你的tr内的三个td不能用循环来实现吗
你这样写rssort的指针移动3次才有一次判断,如果你的rssort的记录数不是3的整数倍一定会出错的
改成这样的
do while not rssort.eof
i=0
response.write "<tr>"
do while not rssort.eof and i<3
response.write "<td>"
'加上处理td的内容
response.write "</td>"
i=i+1
rssort.movenext
loop
response.write "</tr>"
loopt
Anrylxp 2004-12-23
  • 打赏
  • 举报
回复
<%do while not rssort.eof%>
<TR>
<td width="34%" height="25" align="left"><p style="line-height: 150%"><a href="syjh/default.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a><font color="#ff6600"> (<%sql="select count(sortid) from info where flag=1 and sortid="&rssort("sortid")&""
set totle=conn.execute(sql)
totle=totle(0)%><%=totle%>)</font></td>
<%rssort.movenext %>
<td width="34%" height="25" align="left"><p style="line-height: 150%"><a href="syjh/default.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a><font color="#ff6600"> (<%sql="select count(sortid) from info where flag=1 and sortid="&rssort("sortid")&""
set totle=conn.execute(sql)
totle=totle(0)%><%=totle%>)</font></td>
<% rssort.movenext %>
<td width="32%" height="25" align="left" ><p style="line-height: 150%"><a href="syjh/default.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a><font color="#ff6600"> (<%sql="select count(sortid) from info where flag=1 and sortid="&rssort("sortid")&""
set totle=conn.execute(sql)
totle=totle(0)%><%=totle%>)</font></td>
</TR>
<% rssort.movenext
loop
rssort.close
set rssort=nothing
%>
代码(2)
在程序中插入代码(2)后就会产生上面的问题
阿泰 2004-12-23
  • 打赏
  • 举报
回复
代码靠前的地方加一行
Server.ScriptTimeOut =10000
估计就行了, ^_^

是代码执行时间太长了
Anrylxp 2004-12-23
  • 打赏
  • 举报
回复
<%do while not rssort.eof%>
<TR>
<td width="5%" height="25" align="center"><img src="Pict/dir.gif" width="16" height="15" border="0"></td>
<td width="28%" height="25" align="left"><p style="line-height: 150%"><a href="spzs/spzs.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a><font color="#ff6600"> (<%sql="select count(sortid) from spzs where sortid="&rssort("sortid")&""
set totle=conn.execute(sql)
totle=totle(0)%><%=totle%>)</font></td>
<%rssort.movenext %>
<td width="5%" height="25" align="center"><img src="Pict/dir.gif" width="16" height="15" border="0"></td>
<td width="28%" height="25" align="left"><p style="line-height: 150%"><a href="spzs/spzs.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a><font color="#ff6600"> (<%sql="select count(sortid) from spzs where sortid="&rssort("sortid")&""
set totle=conn.execute(sql)
totle=totle(0)%><%=totle%>)</font></td>
<% rssort.movenext %>
<td width="5%" height="25" align="center"><img src="Pict/dir.gif" width="16" height="15" border="0"></td>
<td width="29%" height="25" align="left"><p style="line-height: 150%"><a href="spzs/spzs.asp?sortid=<%=rssort("sortid")%>"><%=rssort("sort")%></a><font color="#ff6600"> (<%sql="select count(sortid) from spzs where sortid="&rssort("sortid")&""
set totle=conn.execute(sql)
totle=totle(0)%><%=totle%>)</font></td>
</TR>
<% rssort.movenext
loop
rssort.close
%>
代码(1)
mzhmark 2004-12-23
  • 打赏
  • 举报
回复
把代码帖出来看下

28,409

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧