日期:2014-05-17 浏览次数:20602 次
<asp:Repeater ID="Repeater1" runat="server" >
<ItemTemplate>
你定义好的html代码,对应动态的地方用<%# Eval("字段名")%>
</ItemTemplate>
</asp:Repeater>
<asp:Repeater ID="Repeater1" runat="server" ViewStateMode="Enabled" onitemcommand="Repeater1_ItemCommand" >
<ItemTemplate>
<div class="div_moudle" >
<table id="table1" style="width:100%;padding-top:0px; height:50px; text-align:center; ">
<tr>
<td id="replyCount" style="width:100px;padding-top:0px;text-align:center;" >
<%# GetReplyCount(Convert.ToInt32(Eval("T_id").ToString()))%>
</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="http://bbs.csdn.net/forums/ASPDotNET" target="_blank"><%# GetEd