for (int i = 0; i < RptTable.Items.Count; i++) { Label lblDersIdOgrenciGrup = (Label)RptTable.Items[i].FindControl("lblDersId"); }