查看: 996|回复: 10
|
请教asp programming 高手
[复制链接]
|
|
<%
Set Conn = Server.CreateObject("ADODB.Connection")
Conn.Open sConnStr
Set Rs1open =Server.createobject("ADODB.RECORDSET")
SQLopen = "Select * from tblPropertySale"
Rs1open.Open SQLopen,Conn,3,2,1
%>
<%
'Conn.Open(sConnStr)
'err = request.querystring("err")
'if case <> "" then
' case = request.querystring("empty")
' response.write empty
'response.end
'end if
%>
<form name="frmsearch" action="index.asp" method=post>
<input type="hidden" name="search" value="top">
<td align=right>
<table border="0" cellpadding="0" cellspacing="0" width="230" id="table14">
<td width="54">
<img src="images/index_21.gif" width="54" height="32" alt=""></td>
<td width="108">
<input type="text" name="txtKeyword" size="25" class="arial8" style="border-left-width: 1px; border-right-width: 1px; border-top: 1px solid #000000; border-bottom-width: 1px"></td>
<td width="22">
<p align="center">
<a href="javascript:document.frmsearch.submit();" >
<img src="images/index_23.gif" width="27" height="32" alt="" border="0"></a></td>
</table>
</td>
</form>
</tr>
</table>
</td>
<td width="9">
<img src="images/index_24.gif" width="9" height="32" alt=""></td>
</tr>
</table>
请问这asp script有何错误?为什么会出现以下error呢?
Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal. |
|
|
|
|
|
|
|
发表于 4-1-2008 01:20 PM
|
显示全部楼层
偶试试一下。
Rs1open.Open SQLopen,Conn,3,2,1
试试换成
Rs1open.Open SQLopen,Conn,3,3 |
|
|
|
|
|
|
|

楼主 |
发表于 4-1-2008 02:31 PM
|
显示全部楼层
困惑
谢谢你的回复,但还是不能。或者你能教我写出类似的search function 吗? |
|
|
|
|
|
|
|
发表于 4-1-2008 02:48 PM
|
显示全部楼层
原帖由 ahboon1108 于 4-1-2008 02:31 PM 发表 
谢谢你的回复,但还是不能。或者你能教我写出类似的search function 吗? 突然发现。。。 你的connection 去了哪里?
connect 去mysql 还是 mssql 的。。。。 |
|
|
|
|
|
|
|

楼主 |
发表于 4-1-2008 02:51 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 4-1-2008 03:05 PM
|
显示全部楼层
你的 sConnStr=?????
和试看 Rs1open.Open SQLopen,Conn,3,1 |
|
|
|
|
|
|
|
发表于 4-1-2008 03:14 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 5-1-2008 06:56 PM
|
显示全部楼层
|
|
|
|
|
|
|
发表于 5-1-2008 10:19 PM
|
显示全部楼层
Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
這個error type 好像是說你的recordset 里要拿的feild name 不對.
你應該是沒有放你的全部code吧...??? |
|
|
|
|
|
|
|
发表于 8-1-2008 10:02 PM
|
显示全部楼层
你没有set你的connection string, 还有你define的record set object有问题。试试找google,seach asp database connection,或去www.w3cschools.com |
|
|
|
|
|
|
|

楼主 |
发表于 15-1-2008 11:44 AM
|
显示全部楼层
谢谢诸位高手的挺立相助, 但这问题我先暂且搁下。因为我在执行着另外一个开发案。 |
|
|
|
|
|
|
| |
本周最热论坛帖子
|