超过了脚本运行的最长时间

来源:百度知道 编辑:UC知道 时间:2024/09/22 05:20:14
<%
sql="select top 6 * from jobnews where newstype=1 order by idate desc"
rs.open sql,conn,1,3
do while not rs.eof
if len(rs("title"))>16 then%>
<tr>
<td width="50%" align="left"> <img src="images/point2.gif" width="6" height="6"> <a href=displaynews.asp?id=<%=rs("id")%>><%=left(rs("title"),16)%>...</a>
<%call ViewNew()%></td>
</tr>
<%else%>
<tr>
<td width="50%" align="left"> <img src="images/point2.gif" width="6" height="6"> <a href=displaynews.asp?id=<%=rs("id")%>><%=rs("title")%></a><%call ViewNew()%&g

调试不要使用 on error resume next 可以检查每个错误

确保 conn.open 能执行成功,否则连接数据库会花费大量时间,甚至超时

把 <%call ViewNew()%> 这个 ViewNew() 函数也贴出来吧

没有