由於DataList的控制指標是重複我如何能夠在數據列表獲取每個ASP按鈕btnExplodedGroupCode
的指數,也Telerik的radcombobox控件(注)RadCmbExplodedGroupCodes
如何找到控制在DataList控件
<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>
你想要在客戶端或服務器端? –
我希望在客戶端 –