repeate自动换行

View Code
<table><tr><td width= "45% "style= "word-break:break-all "> 
            <asp:Repeater ID="rpaboutus" runat="server">
                      
          <ItemTemplate >

            <%# Eval("Con").ToString().Length > 200 ? Eval("Con").ToString().Substring(0, 200)+"....." : Eval("Con") %>
        
                  </ItemTemplate>
          </asp:Repeater>
            
            </td></tr></table>

 

posted @ 2012-06-25 09:29  ComBat  阅读(190)  评论(0编辑  收藏  举报