请教!问题所在
<HTML>
<Title>寻找用户数据</Title>
<Body BgColor=#ffaaff>
<Form Name=FormGet1 Method=Post Action="Ch11_11.asp">
<FieldSet>
<Legend>请输入用户名:</Legend>
书号:<Input type="text" name="xm" Size=10> <p>
<Input type="Submit" Value="送出"> <p>
</FieldSet>
</Form>
</Body>
</HTML>
<%
Set DBconnection = Server.CreateObject("ADODB.Connection")
ConnectionString = "Driver={SQL Server};Server=ETERNAL;Database=gongsi;Uid=sa;Pwd=263501"
DBConnection.open ConnectionString
Set RS=Server.CreateObject("ADODB.Recordset")
RS.open "yh",BDConnection,1,2
if Request("xm") <> Empty then
condition="用户名:'" & Request("xm") & "'"
RS.Find = Condition
if RS.EOF then
Response.Write"很抱歉,查无此用户" & Request("xm") & "的数据"
else
Response.Write"查到的用户数据如下:<br><font Size=10 Color=blue>"
for i=0 to RS.Field.Count-1
Response.Write RS(i) & "<Br>"
next
Response.Write"</font>"
end if
end if
%>
运行时出现ADODB.Recordset (0x800A0BB9)
参数类型不正确,或不在可以接受的范围之内,或与其他参数冲突。
/Ch11_11.asp, 第 18 行
不知道哪里有误,请教各位高手!