运行为什么总是严重超时,打开速度非常慢!慢死人了!求救!
<%@LANGUAGE="VBSCRIPT"%>
<!--#include file="articleconn.asp" -->
<%
set rs1 = Server.CreateObject("ADODB.Recordset")
strsql = "SELECT top 4 newsid, title FROM article ORDER BY dateandtime DESC"
rs1.Open conn,strsql
rs1_numRows = 0
%>
<%
Dim Repeat1__numRows
Repeat1__numRows = -1
Dim Repeat1__index
Repeat1__index = 0
rs1_numRows = rs1_numRows + Repeat1__numRows
%>
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<table width="100%" border="0">
<tr>
<%
While ((Repeat1__numRows <> 0) AND (NOT rs1.EOF))
%>
<td>
<a href="newstemplate.asp?nid=<%=rs("newsid")%>"><%=(rs1.Fields.Item("title").Value)%></a> </td>
<%
Repeat1__index=Repeat1__index+1
Repeat1__numRows=Repeat1__numRows-1
rs1.MoveNext()
Wend
%>
</tr>
</table>
</body>
</html>
<%
rs1.Close()
%>