This is not a question but since I think I know what you are asking, only because I did this recently, I'll give you the code.
DataList does not have an EmptyDataText property but you can do it using a FooterTemplate. For example:
<footertemplate>
<asp:label visible="<%#bool.Parse((dl1.Items.Count==0).ToString())%>" xmlns:asp="#unknown">
runat="server" ID="lblNoRecord" Text="None"></asp:label>
</footertemplate>
This will make the footer template visible or not if there are any records.