Author: Davidnyh | Posted on: 6/4/2006 10:23:38 PM | Views : 810

I'm found example for a shopping cart using datatables. But I get a error 'function makecart doesn't return a value on all code paths' when I run the sample. And how can I view my cart on a different page?   Here is the code:   <%@ Page debug=true Language="VB" ContentType="text/html" ResponseEncoding="iso-8859-1" %>
<html>
<head>
<title>Shopping Cart</title>
<script runat="server">
Dim objDT As System.Data.DataTable
Dim objDR As System.Data.DataRow   Private Sub Page_Load(s As Object, e As EventArgs)
     If Not IsPostBack Then
          makeCart()
     End If
End Sub   Function makeCart()
     objDT = New System.Data.DataTable("Cart")
     objDT. ...

Go to the complete details ...