the following code worked but for the first row in datalist1 only.
protected void DataList1_ItemDataBound(object sender, DataListItemEventArgs e)
{
foreach (DataListItem di in DataList1.Items)
{
if (((DataList)(DataList1.Items[0].FindControl("DataList3"))).Items.Count <= 0)
{
((System.Web.UI.WebControls.Image)(DataList1.Items[0].FindControl("Image40"))).Visible = true;
}
else
{
((System.Web.UI.WebControls.Image)(DataList1.Items[0].FindControl("Image40"))).Visible = false;
}
}
}
can anyone suggest how to apply this to each row in datalist1