You have to cast it to a LinkButton. FindControl method returns a Control object (not a LinkButton one)myDeleteButton = CType(e.Item.FindControl("btnDelete"), LinkButton)