ASP .Net VB adding items on repeated region.

bizjosh

Member
Joined
Mar 16, 2005
Messages
23
Programming Experience
Beginner
i used a repeater region to display my products from
a MS access db, what codes should i add to allow a
button to add this item to the shopping cart?

help appreciated, thanks.

DB: MS Access 2000 App: Dreamweaver MX 2004 Type: ASP .Net VB


<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>

I'm thinking of changing Buy! to something like <asp:Button id="Buy" Text="Buy" OnClick="" runat="server" but i'm not sure what to put for the OnClick event to add the item into a Session('Cart'). I wish to add the product_name, product_id and product_cost..

How can i add a Quantity textbox field?

Please help me..

 
Last edited:
Back
Top