protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e) { string maLoai = GridView1.Rows[e.RowIndex].Cells[0].Text; bool result = cn.DeleteLoaiSach(maLoai); if (result) { lblThongBao.Text = "Xóa thành công"; DoDuLieuVaoGridView(); } else { lblThongBao.Text = "Có lỗi"; } }