views:

115

answers:

1

hello,

i'm using DataList to show records on Client Site of My web page i need to show a message when my DataList is empty .... is there a property of Datalist... How to show that message ?

A: 

RowCount=Convert.ToInt32(DLMoreImages.Items.Count.ToString());

    if (RowCount != null && RowCount < 1)
    {
        DLMoreImages.Visible = false;
        LblerrorMess.Text = "No Record Found...";
    }
leonyx