Dobrý den, rád bych poprosil o pomoc ... Mám následující "Repeater" , ve kterém mám na každém řádku tlačítko ID="IButtonItemAdd" s událostí OnClick="IButtonItemAdd_Click" ...
<asp:Repeater ID="Repeater2" runat="server" DataSourceID="SqlDataSource2">
<ItemTemplate>
<tr>
<td style="width:30px; text-align:center;"><asp:ImageButton ID="IButtonItemAdd" runat="server" ImageUrl="~/images/ico_nk.jpg" OnClick="IButtonItemAdd_Click" /></td>
<td style="width:40px; text-align:left;"><asp:TextBox ID="txt_AddKs" runat="server" Width="20px" Text="1" CssClass="TextBox_02" MaxLength="3"></asp:TextBox> <asp:RequiredFieldValidator ID="txt_AddKsRequired" runat="server" ControlToValidate="txt_AddKs">*</asp:RequiredFieldValidator><asp:RegularExpressionValidator ID="txt_AddKsRegular" runat="server" ControlToValidate="txt_AddKs" ValidationExpression="^[1-9]+[0-9]?">?</asp:RegularExpressionValidator></td>
<td style="width:100px;"><asp:Label ID="lbl_ObjKod" runat="server" Text='<%# Eval("ObjKod") %>'></asp:Label></td>
<td style="width:100px; text-align:left;"><asp:Label ID="lbl_KodSortimentu" runat="server" Text='<%# Eval("KodSortimentu") %>'></asp:Label></td>
<td style="width:280px; text-align:left;"><asp:Label ID="lbl_Sortiment" runat="server" Text='<%# Eval("Sortiment") %>'></asp:Label></td>
<td style="width:80px; text-align:right;"><asp:Label ID="lbl_AktCena" runat="server" Text='<%# Eval("AktCena","{0:C}") %>'></asp:Label></td>
<td style="width:50px; text-align:right;"><asp:Label ID="lbl_SumCena" runat="server" Text='<%# Eval("SazbaDPH") %>'></asp:Label></td>
<td style="width:80px; text-align:right"><asp:Label ID="lbl_SazbaDPH" runat="server" Text='<%# Eval("AktCenaDPH","{0:C}") %>'></asp:Label></td>
</tr>
</ItemTemplate>
</asp:Repeater>
A nyní bych potřeboval v té události
Protected Sub IButtonItemAdd_Click(ByVal sender As Object, ByVal e As System.Web.UI.ImageClickEventArgs)
End Sub
pracovat s hodnoto lbl_ObjKod.Text toho řádku, ve kterém jsem kliknul na tlačítko ID="IButtonItemAdd" Děkuji za pomoc
|