<FooterTemplate>
<asp:Label ID="lblEmpty" Text="No Result" runat="server" Visible='<%#bool.Parse((list.Items.Count==0).ToString())%>'>
</asp:Label>
</FooterTemplate>
list为控件名称
就这样可以了,不用做其它处理,简单好用
<FooterTemplate>
<asp:Label ID="lblEmpty" Text="No Result" runat="server" Visible='<%#bool.Parse((list.Items.Count==0).ToString())%>'>
</asp:Label>
</FooterTemplate>
list为控件名称
就这样可以了,不用做其它处理,简单好用