您的位置:首页 > 其它

Repeater数据为空,显示提示信息(简便版)

2010-09-01 17:20 239 查看
<asp:Repeater ID="rp" runat="server" >
<ItemTemplate>
<%--绑定数据--%>
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="lblEmpty"   Text="没有匹配信息!" runat="server"
Visible='<%#bool.Parse((rp.Items.Count==0).ToString())%>' ForeColor="Red">
</asp:Label>
</FooterTemplate>
</asp:Repeater>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐