Show a message when DataList is Empty
you can add on footer or header template
as show on code below :
as show on code below :
- <code>
- <div style="overflow-x: scroll;">
- <div style="width: 1324px;">
- <footertemplate>
- <asp:label id="lblNoData" runat="server" text="No Rows Found!" visible="<%#bool.Parse((DataListName.Items.Count==0).ToString())%>"></asp:label>
- </footertemplate>
- </div>
- </div>
- </code>