Show a message when DataList is Empty

you can add on footer or header template
as show on code below :

<footertemplate> <asp:label id="lblNoData" runat="server" text="No Rows Found!" visible="<%#bool.Parse((DataListName.Items.Count==0).ToString())%>"></asp:label> </footertemplate>

Comments

Popular posts from this blog

C# Crop white space from around the image

Could not load file or assembly 'Microsoft.ReportViewer.Common, Version=xx.0.0.0, Culture=neutral, PublicKeyToken='xxx' or one of its dependencies.

The specified version string contains wildcards, which are not compatible with determinism.