由于重复了 datalist 控件,我如何获得每个 asp 按钮的索引btnExplodedGroupCode
以及 datalist 中的 Telerik radcomboBox 的索引(注)RadCmbExplodedGroupCodes
<asp:DataList ID="dlExplodedGroupCodes" runat="server" RepeatDirection="Horizontal"
RepeatColumns="1" CellSpacing="4" CellPadding="4">
<ItemTemplate>
<asp:Button ID="btnExplodedGroupCode" runat="server" CommandArgument='<%# Eval("ProcedureGroupId") %>'
Text='<%# Eval("MainGroup") %>' Width="75px" OnClientClick="return CheckToochSelection();"
OnClick="btnExplodedGroupCode_Click" CssClass="rg_button" />
<telerik:RadComboBox ID="RadCmbExplodedGroupCodes" runat="server" DataValueField="ProcedureID"
DataTextField="ProcedureName" HighlightTemplatedItems="true" AllowCustomText="false"
AutoPostBack="true" Skin="MyBlueSkin" EnableEmbeddedSkins="false" Height="200px"
Width="19px" DropDownWidth="298px" NoWrap="true" >
</telerik:RadComboBox>
</ItemTemplate>
</asp:DataList>