|
|
|
|
|
| | |
|
PowerASP active server pages asp.net microsoft .net framework sdk learn asp what is asp tutorial learn asp.net CJWSoft ASPProtect ASPBanner ASPClassifieds
(Advanced)
(Components)
(Database)
(General)
(Vbscript)

|
|
Subject: |
Item cannot be found in the collection corresponding to the requested name or ordinal. |
From: |
Clueless |
Date: |
4/2/2001 5:54:35 AM |
IP: |
153.20.95.66 |
Hi, I encountered the following error.
Can some one kindly help me out on how to solve this error ? You can reach me at studiez@hotmail.com
Error Type:
ADODB.Recordset (0x800A0CC1)
Item cannot be found in the collection corresponding to the requested name or ordinal.
if session("idBasket") = "" then
Dim dbConn, dbBasket, rsBasket
set dbConn = ConnectToDB (svrName,dbName,userId,passWd)
'Create an ADO database connection
set dbBasket = server.createobject("adodb.connection")
'Create a record set
set rsBasket = server.CreateObject("adodb.recordset")
rsBasket.Open "execute sp_CreateBasket " & session("idShopper"), dbConn
I think it lies with the 2 statements below.
How can I retrieve the id of the basket returned from the insert and set the basket is in the session variable
'Retrieve the id of the basket returned from the insert
idBasket = rsBasket("idBasket")
'Set the basket is in the session variable
session("idBasket") = idBasket
|
|
|

|
|
|
|
|
|
|
|
|
|