显示8个字,多于8个字, 用...表示
<asp:Repeater runat="server" ID="MsgLists">
<ItemTemplate>
<tr>
<td>
<a href="#" title="<%#Eval("Content")%>">
<ItemTemplate>
<tr>
<td>
<a href="#" title="<%#Eval("Content")%>">
<%#Convert.ToString(Eval("Content")).Length > 8 ? Convert.ToString(Eval("Content")).Substring(0, 8) + "..." : Eval("Content")%>
</a>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>
</td>
</tr>
</ItemTemplate>
</asp:Repeater>