protected void btnDelete_Click(object sender, EventArgs e) { foreach (RepeaterItem item in rptCategories.Items) { CheckBox chbSelect = (CheckBox)item.FindControl("chbSelect"); if (chbSelect.Checked) { Label lblCategoryCode = (Label)item.FindControl("lblCategoryCode"); DALCategory obj = new DALCategory(); obj.Category_Delete(Convert.ToInt32(lblCategoryCode.Text)); } } BindCategories(); }