Sunday, 4 November 2012

How to find Empty Data in DataList Control




01<asp:DataList ID="dlContacts" runat="server">
02<ItemTemplate>
03
04<!-- Add your Item Template Here -->
05
06</ItemTemplate>
07<FooterTemplate>
08<asp:Label ID="lblEmpty" Text="no result" runat="server"
09     Visible='<%#bool.Parse((dlContacts.Items.Count==0).ToString())%>'>
10</asp:Label>
11</FooterTemplate>
12</asp:DataList>

No comments:

Post a Comment

Convert SVG to PNG using svg.dll

      <div id="divsvg">        <svg width="350" height="300"><defs></defs> ............