Inject Index of Current item when binding to a repeater <p>I am binding a <code>List&lt;HtmlImage&gt;</code> to a repeater</p> <p>Its actually a nested repeater and the list is one of the properties that the parent repeater is binding to</p> <p>I want to spit out the index of the current dataitem into the id property of the <code>&lt;li&gt;</code></p> <p>I've put a comment where I want the index to appear below </p> <p>I have the following:</p> <pre><code> &lt;asp:Repeater ID="ImageListRepeater" runat="server" DataSource='&lt;%# DataBinder.Eval(Container.DataItem, "Images") %&gt;'&gt; &lt;HeaderTemplate&gt;&lt;ul&gt;&lt;/HeaderTemplate&gt; &lt;ItemTemplate&gt; &lt;li id='&lt;% **I want the Index Here** %&gt;'&gt;&lt;%# RenderImage(Container.DataItem)%&gt;&lt;/li&gt; &lt;/ItemTemplate&gt; &lt;FooterTemplate&gt;&lt;/ul&gt;&lt;/FooterTemplate&gt; &lt;/asp:Repeater&gt; </code></pre> <p>What are the options?</p> <p>thanks</p>