Hi,
You can find datalist having items or not? using following property
DataList1.Items.Count
Example:
if (DataList1 == null || DataList1.Items.Count == 0)
Response.Write("Your dataList is EMPTY");
else
Response.Write("Your dataList contain " + DataList1.Items.Count.ToString() + " item(s)");
If this answer is helpful to you, please provide rating. :)
Thanks,
Imdadhusen