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