ASP.NET Repeater Control & Array Index
Posted on 2009-05-19
I have a working repeater control filled by an array. I have added a delete button, but am unsure how to reference the array index in the Command Argument to pass to the delete command.
<asp:Repeater ID="gvRC" runat="server">
<li><%#Container.DataItem %> <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="~/images/icon_delete.gif" CommandName="deleteStation" CommandArgument=" " /></li>
The repeater is filled with a simple array by:
gvRC.DataSource = aryRC