I am using ASP.NET and VB to display a message(label) while the datalist is empty like this
I am getting a error "the name bool is not declared".
What is causing this error?
Code:
<asp:Label ID="lblEmpty" Text="No Data To Display" runat="server" Visible='<%#bool.Parse((dlErgebnis.Items.Count==0).ToString()) %>'></asp:Label>
What is causing this error?
Comment