protected void Button1_Click(object sender, EventArgs e) { Admin admin = new Admin() { TaiKhoan = txtTK.Text, MatKhau = txtMK.Text, }; if (adminDAO.Dangnhap(admin)) { Session["TaiKhoan"] = txtTK.Text; Response.Redirect("QuanLy/Phong/Phong.aspx"); } //--------------------------- else { Label1.Text = "Tài khoản hoặc mật khẩu không đúng"; } }