I have a querystring that passes to the page and selects records to display in my datalist.
Is there a template in the datalist for no records such as the EmptyDataTemplate in the Gridview?
No, there is no template in the DataList for that.
But, you can not databind the datalist if you have no records. And place a Labal under the DataList that is invisible, and set Visible = true if the record count is zero to display a message.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.