protected void btnFind_Click(object sender, EventArgs e)
{
DataListItem item=dataListEmp.Items[1] as DataListItem;
ImageButton imgbtn=item.FindControl("imgData") as ImageButton;
imgbtn.ImageUrl = "http://localhost:64452/FilesReadAndInsert/Images/flow3.jpg";
}
e.jpg";
above will work but the problem is
here we have to hard code the item index. we will not get proper index that's why i wrote in the datalist command event
DataListItem item=dataListEmp.Items[1] as DataListItem;