求帮手~~
<%
Dim rstSearchResult
Dim rstSearchResult_cmd
Dim rstSearchResult_numRows
Set rstSearchResult_cmd = Server.CreateObject ("ADODB.Command")
rstSearchResult_cmd.ActiveConnection = MM_PurchaseSys_STRING
rstSearchResult_cmd.CommandText = "SELECT * FROM Catalog ORDER BY product ASC"
rstSearchResult_cmd.Prepared = true
Set rstSearchResult = rstSearchResult_cmd.Execute
rstSearchResult_numRows = 0
%>
提示是倒数第三行错误。。。。求高手帮忙~~~
------解决方案--------------------应该是执行方法吧,加括号
Set rstSearchResult = rstSearchResult_cmd.Execute()
------解决方案--------------------楼主不适合写 asp.net , 回去写asp吧
------解决方案--------------------这是asp的代码,你还是找本asp的操作数据库的书看下,我发现似乎不止一处错误哦。
------解决方案--------------------这个是asp啊,楼主如果你现在是再学习,不是工作,那你就从asp.net开始学习吧。