asp测试运行缓慢,直到超时!!!

来源:百度知道 编辑:UC知道 时间:2024/06/06 16:06:02
各位大哥大姐们帮忙看看啊,是不是哪里出错了??

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>

<form id="form1" name="form1" method="post" action="">
<table width="200" height="47" border="0">
<tr>

在do while前加上if rs.recordcount>0 Then
在loop后加行end if
如果加上这些还是运行慢
那么你得考虑分页了因为数据处理过多也会超时的

rs.open "select from gonggao",conn,1,1
改为
rs.open "select * from gonggao",conn,1,1

因为没有指定查询字段 *代表全部

'再加判断
rs.open "select from gonggao",conn,1,1
'这里
if rs.eof then
response.end
end if
do while not rs.eof

还有
请关闭记录集
<%rs.movenext
loop

rs.close
set rs=nothing
%>

<%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%>
<!--#include file="conn.asp"-->

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="ASP 设置时间运行 如超时运行下一条 ASP编写好了怎么测试运行正确与否? 手机QQ一直登陆直到超时怎么办? asp 超时重新登陆 ASP脚本超时问题 asp问题链接超时 开机运行缓慢原因 游戏运行缓慢 电脑运行缓慢 为什么运行速度缓慢?