在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
<asp:Repeater ID="myRepeater" runat="server"> <HeaderTemplate> <table> </HeaderTemplate> <ItemTemplate> <tr> <td><%# Container.ItemIndex %></td> <!-- or maybe --> <td><%# Container.ItemIndex + 1 %></td> <td><%# DataBinder.Eval(Container, "DataItem.Name") %></td> </tr> </ItemTemplate> <FooterTemplate> </table> </FooterTemplate> </asp:Repeater> http://stackoverflow.com/questions/10009431/what-is-the-easiest-way-to-put-an-index-to-repeater-in-net
|
请发表评论