| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 547 人关注过本帖
标题:[求助]关于ASP编程中出现ADODB.Recordset (0x800A0E78)错误
取消只看楼主 加入收藏
lychee_xlz
Rank: 1
等 级:新手上路
帖 子:6
专家分:0
注 册:2007-5-10
收藏
 问题点数:0 回复次数:0 
[求助]关于ASP编程中出现ADODB.Recordset (0x800A0E78)错误

ADODB.Recordset (0x800A0E78)
对象关闭时,不允许操作。
/root/ASP SQL Server源代码/8/Chkadmin.asp, 第 80 行
期待高手指教

源代码如下:
<!--#include file="conn/conn.asp"-->
<%
dim sql
dim rs
dim from1
dim sq12
dim sq123
dim nick
dim password
nick=replace(trim(request("nick")),"'","")
password=replace(trim(Request("password")),"'","")
select1=request.form("select")
set rs=server.createobject("adodb.recordset")
if select1="a" then
sql="select * from admin where password='"&password&"' and nick='"&nick&"'"
' response.write ""&sql&""
' response.end
rs.open sql,conn,1,1
if not(rs.bof and rs.eof) then
if password=rs("password") and rs("flag")<=2 then
session("admin")=rs("nick")
session("flag")=rs("flag")
Response.Redirect "manage.asp"
else
call Error
end if
else
call Error()
end if
elseif select1="b" then
sql2="select * from admin where password='"&password&"' and nick='"&nick&"'"
' response.write ""&sql&""
' response.end
rs.open sql2,conn,1,1
if not(rs.bof and rs.eof) then
if password=rs("password") and rs("flag")=3 then
session("admin")=rs("nick")
session("flag")=rs("flag")
Response.Redirect "manage.asp"
else
call Error
end if
else
call Error()
end if
elseif select1="c" then
sql23="select * from personnal where pass='"&password&"' and [user]='"&nick&"'"
' response.write ""&sql&""
' response.end
rs.open sql23,conn,1,1
if not(rs.bof and rs.eof) then
if password=rs("pass") and rs("flag")>=1 then
session("admin")=rs("user")
session("flag")=rs("flag")
Response.Redirect "manage.asp"
else
call Error
end if
else
call Error()
end if
end if

sub Error()
response.write " <br><br><br>"
response.write " <table align='center' width='300' border='1' cellpadding='0' cellspacing='0' bordercolor='#999999'>"
response.write " <tr bgcolor='#999999'> "
response.write " <td colspan='2' height='15'> "
response.write " <div align='center'><font color='#FFFFFF'>操作: 确认身份失败!</font></div>"
response.write " </td>"
response.write " </tr>"
response.write " <tr> "
response.write " <td colspan='2' height='23'> "
response.write " <div align='center'><br><br>"
response.write " 用户名或密码错误!!! <br><br>"
response.write " <a href='javascript:onclick=history.go(-1)'>返回</a>"
response.write " <br><br></div></td>"
response.write " </tr> </table>"
end sub
rs.close
conn.close
set rs=nothing
set conn=nothing

%>

搜索更多相关主题的帖子: Recordset ADODB ASP 
2007-05-10 15:38
快速回复:[求助]关于ASP编程中出现ADODB.Recordset (0x800A0E78)错误
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022674 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved