Creating ASP. NET Shopping Cart on DWMX

bizjosh

Member
Joined
Mar 16, 2005
Messages
23
Programming Experience
Beginner
[font=Tahoma,Verdana,Arial] Hi,

I managed to create a repeater to list my products's name, desc,
cost using DWMX and my database is MS Access (project purpose),
how do I add a button that will allow the user to Add the db items
to cart? How do I create this cart too? Anyone has any examples
or samples somewhere?

I like to also know how to add a button 'View Details' to go
to a page that will show all properties all this specific product.

Please help! Thanks!

Below are my related codes:

Declarations/Connections:

<%@ Page Language="VB" ContentType="text/html" %>
<%@ Register TagPrefix="MM" Namespace="DreamweaverCtrls" Assembly="DreamweaverCtrls,version=1.0.0.0,publicKeyToken=836f606ede05d46a,culture=neutral" %>
<MM:DataSet
id="dsProducts"
runat="Server"
IsStoredProcedure="false"
ConnectionString='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_STRING_connSoftwares") %>'
DatabaseType='<%# System.Configuration.ConfigurationSettings.AppSettings("MM_CONNECTION_DATABASETYPE_connSoftwares") %>'
CommandText='<%# "SELECT * FROM Products_Items WHERE product_id LIKE ?" %>'
CurrentPage='<%# IIf((Request.QueryString("dsProducts_CurrentPage") <> Nothing), Request.QueryString("dsProducts_CurrentPage"), 0) %>'
PageSize="4"
Debug="true"
>
<Parameters>
<Parameter Name="@product_id" Value='<%# ("OS") + "%" %>' Type="WChar" />
</Parameters>
</MM:DataSet>
<MM:pageBind runat="server" PostBackBind="true" />


Repeated Region of Product Items:

<ASP:Repeater runat="server" DataSource='<%# dsProducts.DefaultView %>'>
<ItemTemplate>
<tr>
<td width="150" height="38"><div align="center">Code:<%# dsProducts.FieldValue("product_id", Container) %>

<img src="images/products/<%# dsProducts.FieldValue("product_image", Container) %>"></div></td>
<td width="170"><div align="center"><%# dsProducts.FieldValue("product_name", Container) %></div></td>
<td width="150"><div align="center"><%# dsProducts.FieldValue("product_desc", Container) %></div></td>
<td width="30"><div align="center">$<%# dsProducts.FieldValue("product_cost", Container) %>.00</div></td>
<td width="20">Buy!</td>
</tr>
</ItemTemplate>
</ASP:Repeater>[/font]
 
Back
Top