<FooterTemplate> <asp:Label ID="lbEmpty" Text="找不到任何数据!" ForeColor="Red" runat="server" Visible='<%#bool.Parse((repNewsInfo.Items.Count==0).ToString())%>'></asp:Label> </FooterTemplate>