Hi,
I have a repeater which displays lists of items. For each item, a checkbox is displayed and is named using the prefix of chk and then the product id is appended.
The code is as follows:
The user can select as many items as he/she wants from this list and can then add them to a shopping cart.
My question is:
1) How can I access the checkboxes in the repeater control.
I am using VB.NET. Any help will be very much appreciated. I need to get this working for a system demo tomorrow.
I have a repeater which displays lists of items. For each item, a checkbox is displayed and is named using the prefix of chk and then the product id is appended.
The code is as follows:
Code:
<ItemTemplate>
<tr>
<td><%#Container.DataItem("ImageLink")%></td>
<td><%#Container.DataItem("Name")%></td>
<td><%#Container.DataItem("Description")%></td>
<td><input type="checkbox" id="chk<%#Container.DataItem("ProductID")%>"></td>
</tr>
<tr>
<td colspan="4">
<hr noshade>
</td>
</tr>
</ItemTemplate>
The user can select as many items as he/she wants from this list and can then add them to a shopping cart.
My question is:
1) How can I access the checkboxes in the repeater control.
I am using VB.NET. Any help will be very much appreciated. I need to get this working for a system demo tomorrow.