Recent Posts:

Archives:

Blogroll:

Get Email Updates:
Enter your email address:

Tuesday, 25 January 2011

ASP.NET Handling Empty Data in DataList control:

<asp:DataList ID="list" runat="server">
<ItemTemplate>
<!-- Add your Item Template Here -->
</ItemTemplate>
<FooterTemplate>
<asp:Label ID="lblEmpty" Text="No Result" runat="server"
     Visible='<%#bool.Parse((list.Items.Count==0).ToString())%>'>
</asp:Label>
</FooterTemplate>
</asp:DataList>


0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

‹Home

Newer›  ‹Older