add to cart using a datalist

E

EmJayEm

I have implemented an add to cart button for each row of a datalist
containing stock details. The problem is I don't know how to retrieve the
itemname out of the selected row when the user clicks "Add To Cart". I am
using the OnItemCommand="datalist_ItemCommand" in the datalist.

I tried something like this but it does not work,

Dim itemNameCell As TableCell = e.Item.DataItem(1)

Any ideas?

Thanks,

EmJ.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,273
Latest member
DamonShoem

Latest Threads

Top