数据列表一列截取前十位加...鼠标放上显示全部

        <div class="table-container">
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table width="100%" border="0" cellspacing="0" cellpadding="0" class="ltable">
                        <tr>
                            <th width="5%">选择</th>
                            <th align="left" width="10%">服务标题</th>

                            <th align="left" width="10%">联系人</th>
                            <th align="left" width="10%">联系电话</th>
                            <th align="left" width="8%">备注</th>
                            <th align="left" width="14%">用户名</th>
                            <th align="left" width="8%">昵称</th>
                            <th align="left" width="12%">预约时间</th>
                            <th align="left" width="8%">审核状态</th>
                            <th align="left" width="10%">添加时间</th>
                            <th align="left" width="5%">操作</th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr>
                        <td align="center">
                            <asp:CheckBox ID="chkId" CssClass="checkall" runat="server" Style="vertical-align: middle;" />
                            <asp:HiddenField ID="hidId" Value='<%#Eval("id")%>' runat="server" />
                        </td>
                        <td><%#Eval("article_title")%></td>
                       
                        <td><%#Eval("lianxiren")%></td>
                        <td><%#Eval("lianxi_phone")%></td>
                        <td align="left" title='<%#Eval("remark")%>'><%#Eval("remark").ToString().Length>10?Eval("remark").ToString().Substring(0,10)+"...":Eval("remark").ToString()%></td>
<%--   为上行代码    --%>
                        <td><%#Eval("user_name")%></td>
                        <td><%#Eval("nick_name")%></td>
                        <td><%#Eval("yuyue_time")%></td>
                        <td><%#GetUserStatus(Convert.ToInt32(Eval("status")))%></td>
                         <td><%#Eval("createtime")%></td>
                        <td>
                            <a href="article_Sh_remark.aspx?action=<%#DTEnums.ActionEnum.Edit %>&id=<%#Eval("id")%>&article_id=<%=id %>">审核</a>
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <%#rptList.Items.Count == 0 ? "<tr><td align=\"center\" colspan=\"8\">暂无记录</td></tr>" : ""%>
</table>
                </FooterTemplate>
            </asp:Repeater>
        </div>

猜你喜欢

转载自blog.csdn.net/weixin_42413952/article/details/82861847