protected void btnOK_Click(object sender, EventArgs e) { try { bool tontai = cls.kiemtratontai("select * from Users where UserName='******' and Pass='******'"); if (tontai) { Session.Contents["UserName"] = "******" + txtTenDN.Text + "'"; DataTable dt = cls.Datatable_Laydulieu("Select UserName From Users where UserName='******'", "KH"); Session.Contents["KH"] = dt.Rows[0][0].ToString(); Response.Redirect("~/GioHang.aspx"); } else { } } catch (Exception) { lblstt.Text = "Bạn sai thông tin đăng nhập hoặc chưa có tài khoản!"; } }