由网友(荒漠野战TSG)分享简介:我绑定一个名单,其中,HtmlImage> 来转发它实际上是一个嵌套的中继器和列表是父中继器结合Its actually a nested repeater and the list is one of the properties that the parent repeater is binding to...
我绑定一个名单,其中,HtmlImage>
来转发
它实际上是一个嵌套的中继器和列表是父中继器结合
Its actually a nested repeater and the list is one of the properties that the parent repeater is binding to
我要吐了当前的DataItem的索引的id属性的<李>
I want to spit out the index of the current dataitem into the id property of the <li>
我已经把一个评论,我想该指数将出现以下
I've put a comment where I want the index to appear below
我有以下几点:
<asp:Repeater ID="ImageListRepeater" runat="server" DataSource='<%# DataBinder.Eval(Container.DataItem, "Images") %>'>
<HeaderTemplate><ul></HeaderTemplate>
<ItemTemplate>
<li id='<% **I want the Index Here** %>'><%# RenderImage(Container.DataItem)%></li>
</ItemTemplate>
<FooterTemplate></ul></FooterTemplate>
</asp:Repeater>
有什么选择?
What are the options?
感谢
推荐答案
您是否尝试过&LT;%#Container.ItemIndex%&GT;
相关推荐
最新文章