protected void btnthemmoi_Click(object sender, DirectEventArgs e) { daNguoiDung them = new daNguoiDung(); string taikhoan = txtTaiKhoan.Text; if (taikhoan == "") { X.Msg.Alert("Thông báo lỗi", "Hãy nhập vào tài khoản").Show(); return; } string matkhau = txtMatKhau.Text; if (matkhau == "") { X.Msg.Alert("Thông báo lỗi", "Hãy nhập vào mật khẩu").Show(); return; } DateTime ngaybatdau = Convert.ToDateTime(txtNgayBatDau.Text); DateTime ngayketthuc = Convert.ToDateTime(txtNgayKetThuc.Text); int soluongup = int.Parse(txtSoLuongUp.Value.ToString()); them.Them(Cl_KetNoi.hamketnoisql(), taikhoan, matkhau, ngaybatdau, ngayketthuc, 0, soluongup); this.wThemSuaNguoiDung.Hide(); txtTaiKhoan.Text = ""; txtMatKhau.Text = ""; this.grdDanhSachNguoiDung.GetStore().Reload(); }