I have a repeater inside a user control.User control in on page shoppingcart.aspx.I want to access all lblPrice from javascript from a function inside shoppingcart.aspx.How to access all of these labels.
<asp:Repeater ID="rptShoppingCart" runat="server">
<HeaderTemplate>
<tr class="big_header_style">
<td>
Product(s)
</td>
<td>
Description</td>
<td>
Quantity</td>
<td>
Price (INR)</td>
<td>
Total (INR)</td>
<td>
Remove?</td>
</tr>
</HeaderTemplate>
<ItemTemplate>
<tr class="dg_item_style">
<td align="center">
<img src='<%# Page.ResolveUrl(Convert.ToString(DataBinder.Eval(Container.DataItem,"ProductInfo.thumbnailPath1")))%>'
width="90" height="90" /></td>
<td>
<asp:Label ID="lblProductName" runat="server" Text='<%#DataBinder.Eval(Container.DataItem,"ProductInfo.productName") %>'></asp:Label></td>
<td align="center">
<input id="proQuantity" runat="server" type="text" size="1" value='<%#Eval("Quantity") %>' /></td>
<td align="center">
<strong class="redtxt">
<asp:Label ID="lblPrice" runat="server" Text='<%#GetPrice((BAL.ShoppingCartMaster)Container.DataItem)%>' /></strong></td>
<td align="center">
<strong class="redtxt">
<asp:Label ID="lblTotal" runat="server" Text='<%#calculatePrice((BAL.ShoppingCartMaster)Container.DataItem)%>'></asp:Label></strong>
</td>
<td align="center">
<asp:CheckBox runat="server" ID="cbRemoveFromCart" />
<asp:Label id="lblShoppingCartID" runat="server" visible="false" text='<%#Eval("ShoppingCartID") %>'></asp:Label>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>