Repeater 添加暂无数据

 <FooterTemplate>
                <tr>
                <td colspan="10">
                 <asp:Label ID="lblEmpty" Text="暂无数据..." runat="server"  Visible='<%#bool.Parse((rptDingList.Items.Count==0).ToString())%>'></asp:Label> 
                </td>
                </tr>
                    
                       </table>
                </FooterTemplate>
原文地址:https://www.cnblogs.com/SacredSX/p/3596394.html