protected void rep1_ItemDataBound(object sender, RepeaterItemEventArgs e)
{
if (e.Item.ItemType == ListItemType.Item || e.Item.ItemType == ListItemType.AlternatingItem)
{
string id = (e.Item.FindControl("HiddenField2") as HiddenField).Value;
FILESTYPE filestype = new FILESTYPE();
FILESTYPEBLL filestypebll = new FILESTYPEBLL();
ImageButton im1 = e.Item.FindControl("ImageButton5") as ImageButton;
string wherestr = "FILESTYPE_PARENT="+id;
int count = filestypebll.Exists(wherestr);
if (count == 0)
{
im1.Visible = false;
}
else
{
im1.Visible = true;
}
}
}