private void NVCapNhatThongTinCaNhan() { NguoiDungDTO vkhDto = (NguoiDungDTO)Session["nguoidung"]; NguoiDungDTO vkhDto_new = new NguoiDungDTO(vkhDto); //Lấy tham số client truyền xuống vkhDto_new.Ho_ten = XL_CHUOI.Nhap(Request, "hoten"); vkhDto_new.Ngay_sinh = DateTime.Parse(Request["ngaysinh"]); vkhDto_new.Gioi_tinh = bool.Parse((XL_CHUOI.Nhap(Request, "gioitinh"))); vkhDto_new.Dia_chi = XL_CHUOI.Nhap(Request, "diachi"); vkhDto_new.Dien_thoai = XL_CHUOI.Nhap(Request, "dienthoai"); vkhDto_new.Email = XL_CHUOI.Nhap(Request, "email"); //Cập nhật neu co thay doi bool kq = true; if (vkhDto_new.Ho_ten != vkhDto.Ho_ten || vkhDto_new.Ngay_sinh != vkhDto.Ngay_sinh || vkhDto_new.Gioi_tinh != vkhDto.Gioi_tinh || vkhDto_new.Dia_chi != vkhDto.Dia_chi || vkhDto_new.Dien_thoai != vkhDto.Dien_thoai || vkhDto_new.Email != vkhDto.Email) { NguoiDungBUS ndBus = new NguoiDungBUS(); kq = ndBus.CapNhatThongTinNguoiDung(vkhDto_new); } XL_THE the = new XL_THE("goc"); XL_THUOC_TINH thuoc_tinh; //Cập nhật thành công if (kq == true) { Session["nguoidung"] = vkhDto_new; thuoc_tinh = new XL_THUOC_TINH("kq", "True"); } else { thuoc_tinh = new XL_THUOC_TINH("kq", "False"); } //Trả kết quả về client the.Danh_sach_thuoc_tinh.Add(thuoc_tinh); string chuoi = the.Chuoi(); XL_CHUOI.XuatChuoi(Response, chuoi); }