V
VB Programmer
I am making a data driven shopping cart.
I'm using a datalist for the list of products. The item template consists
of:
- Product Id
- Product Picture
- Product Description
- Price
- Qty
- Add to Cart image button
1. When I double click on the image button (Item Template view) it doesn't
auto create the code behind declaration. Am I not allowed to use a button
in a datalist item template?
2. How can I "reference" the "current" product from the button? Example:
They click on product 123 and I want to put the Product Id/Price into a
variable.
Thanks!
I'm using a datalist for the list of products. The item template consists
of:
- Product Id
- Product Picture
- Product Description
- Price
- Qty
- Add to Cart image button
1. When I double click on the image button (Item Template view) it doesn't
auto create the code behind declaration. Am I not allowed to use a button
in a datalist item template?
2. How can I "reference" the "current" product from the button? Example:
They click on product 123 and I want to put the Product Id/Price into a
variable.
Thanks!