[asp.net] 格式化repeater字段显示
<asp:Repeater ID="rp_jingdian" runat="server">
<ItemTemplate>
<li>
<a href="article_article.aspx?id=<%#Eval("id") %>" target="_blank">
<span class="span_bg">
<img width="80" height="70" src="<%#Eval("LitPic") %>" />
<span style="color:#666;"><%#Eval("Title") %></span>
</span>
<span class="cont"><p><%#Eval("Cont").ToString().Length>45?Eval("Cont").ToString().Substring(0,45)+"...":Eval("Cont").ToString() %></p></span>
</a>
</li>
</ItemTemplate>
</asp:Repeater>
技术文档