Beispiel #1
0
        protected void btnXoa_Click(object sender, EventArgs e)
        {
            string maCongToDien = txtMacongtodien.Text;

            DienDAO DienDAO = new DienDAO();

            bool result = DienDAO.Xoa(maCongToDien);

            if (result)
            {
                lblThongBao.Text = "Xóa thành công";
                LayDuLieuTuGirdview();
            }
            else
            {
                lblThongBao.Text = "Xóa không thành công, vui lòng kiểm tra lại!";
            }
        }