사용자 컨트롤 안에 리피터가 있습니다. shoppingcart.aspx 페이지의 사용자 컨트롤에 있습니다. 쇼핑 카트 내의 함수에서 자바 스크립트의 모든 lblPrice에 액세스하려고합니다. .aspx. 이러한 모든 레이블에 액세스하는 방법.리피터 내부의 액세스 레이블 asp.net 페이지에서 usercontrol 안에있는 ItemTemplate
<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>
jquery를 사용하지 않고 마스터 페이지를 사용하지 않아서 죄송합니다. – Rohit
ClientId 속성을 사용할 수 있습니다. – Mahin
아니요, Repeater 내의 컨트롤에 ClientID를 사용할 수 없습니다. –