コード例 #1
0
ファイル: DonVi.aspx.cs プロジェクト: nghuutai/ThuVien
        protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
        {
            string ma     = GridView1.Rows[e.RowIndex].Cells[0].Text;
            bool   result = cn.DeleteDonVi(ma);

            if (result)
            {
                lblThongBao.Text = "Xóa thành công";
                DoDuLieuVaoGridView();
            }
            else
            {
                lblThongBao.Text = "Có lỗi";
            }
        }