<% Dim CartID CartID = RetrieveCartID() ' Calling function from ShoppingCartFunctions if CartID = "" then Response.write " <font color = red>Cart is empty!</font>" Response.end() end if dim strConn strConn = GetShoppingCartStrConn() dim ListOfCodes ListOfCodes = Request.form("Selection") if not IsEmpty(ListOfCodes) then DeleteFromCartContent ListOfCodes 'Invoke a function from ShoppigCartFunctions end if dim strSQL, I, records, rs1, dbConn records = request.QueryString("records") Call OpenRS(rs1,dbConn, strConn) rs1.PageSize = 12 rs1.CacheSize = 300 rs1.CursorLocation = adUseClient strSQL = "select CartContentID, CartContent.CreditCategory, DescriptionText, CategoryDescr, NumOfRecords, Price*NumOfRecords as Amount from CartContent inner Join PriceInfo " &_ "on CartContent.CreditCategory = Price.Info.CreditCategory where CartID = " & CartID & " order by CartContent.CreditCategory, DescriptionText" rs1.Open strSQL, strConn, adOpenForwardOnly, adLockReadOnly, adCmdText %>----------------------------------------------------------------------
If Err.Number > 0 Then Response.Write "<FONT SIZE=5><B>" & "VBScript Errors:" & "</B></FONT><P>" Response.Write "<B>" & "Error Number: " & "</B>" & Err.Number & "<P>" Response.Write "<B>" & "Error Descr: " & "</B>" & Err.Description & "<P>" Response.Write "<B>" & "Help Context: " & "</B>" & Err.HelpContext & "<P>" Response.Write "<B>" & "Help Path: " & "</B>" & Err.HelpPath & "<P>" Response.Write "<B>" & "Native Error: " & "</B>" & Err.NativeError & "<P>" Response.Write "<B>" & "Source: " & "</B>" & Err.Source & "<P>" Response.Write "<B>" & "SQL State: " & "</B>" & Err.SQLState & "<P>" End If dim Counter If dbConn.Errors.Count > 0 Then Response.Write "<FONT SIZE=5><B>" & "Database Errors:" & "</B></FONT><P>" ' Response.Write "<B>" & "SQL Expression: " & "</B>" & SQL & "<P>" For counter= 0 To dbConn.Errors.Count Response.Write "<B>" & "Error Number: " & "</B>" & dbConn.Errors(Counter).Number & "<P>" Response.Write "<B>" & "Error Descr: " & "</B>" & dbConn.Errors(Counter).Description & "<P>" next end if