注册 登录
编程论坛 ASP技术论坛

ASP 显示问题 来位哥哥 帮帮忙把 急死啊

a172534390 发布于 2011-07-25 21:33, 463 次点击
错误 提示
技术信息(用于支持人员)

错误类型:
Active Server Pages, ASP 0113 (0x80004005)
超过了脚本运行的最长时间。可以为 Server.ScriptTimeOut 属性指定新值或更改 IIS 管理工具中的相应值来更改此限制。
/index.asp


浏览器类型:
Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727)  

网页:
GET /index.asp  


我的代码
<%@LANGUAGE="VBSCRIPT" CODEPAGE="65001"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.
<!--#include file="Inc/conn.asp"-->
<html xmlns="http://www.
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>无标题文档</title>
</head>

<body>
<%
dim rs,sql,keywords
keywords=request.QueryString("keywords")
set rs= Server.CreateObject("adodb.recordset")
sql="select * from Histroly where name like '%"&keywords&"%' order by title desc"
rs.open sql,conn,1,1
do while not rs.eof
Response.Write(rs("Title"))
Response.Write("<br / >")
rs.movenext
loop
%>
</body>
</html>


where name like '%"&keywords&"%' order by title desc (不加这个他就显示正常) 为什么啊 大哥们帮帮忙把 折磨死我啊

2 回复
#2
yms1232011-07-26 01:38
Histroly这个表有多少条数据?
用的是什么数据库,大数据量最好用存储过程来解决
#3
awke0022011-07-29 01:21
where name like '%"&keywords&"%' order by title desc
你的记录中可能有空值的存在,你试着在数据库中的每个数据中都填上数据看看。。
1