------最佳解决方案--------------------------------------------------------
this.DataBind();
------其他解决方案--------------------------------------------------------
少些了this.Repeater1.DataBind();
------其他解决方案--------------------------------------------------------
你可以在官方网站,查看案例,上面有案例使用说明
------其他解决方案--------------------------------------------------------
<asp:Repeater ID="Repeater1" runat="server" ViewStateMode="Enabled">
<ItemTemplate>
<div class="div_moudle">
<div class="div_m_title">
<%-- <%# Eval("S_name")%>--%>
</div>
<asp:Datalist ID="DataList1" runat="server" DataSource='<%# Eval("TopicList") %>'>
<ItemTemplate>
<table id="table1" style="width:100%;padding-top:0px; height:40px; text-align:center; ">
<tr>
<td style="width:100px;padding-top:0px;text-align:center;" >
<tt><%# GetReplyCount(Convert.ToInt32(Eval("T_id").ToString()))%></tt>
<tt></tt>
</td>
<td style="width:600px;text-align:left;padding-top:0px;"><a href='<%# Eval("T_id","TopicReply.aspx?id={0}") %>' target="_blank"> <%# Eval("T_title")%></a></td>
<td style="width:100px;padding-top:0px;">
<tt style="width:250px;">
<a href="#" target="_blank"><%# GetEditer( Convert.ToInt32( Eval("U_id")))%></a>
</tt>