</asp:Repeater>
from: http://blog.cnbb.com.cn/fhy1985/articles/75053.html
<asp:Repeater ID="rpt1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<%# Container.ItemIndex+1%>.
<a href="<%# Eval("url")%>" target="_blank"><%# Eval("title")%></a>
</ItemTemplate>
</asp:Repeater>
如果想每四行输出一个</tr><tr>
<asp:Repeater ID="rpt1" runat="server" DataSourceID="SqlDataSource1">
<ItemTemplate>
<%# Container.ItemIndex % 5==3? "</tr><tr>":""%>.
<a href="<%# Eval("url")%>" target="_blank"><%# Eval("title")%></a>
</ItemTemplate>
</asp:Repeater>
from: http://www.svnhost.cn/Article/Detail-60.shtml