Ejemplo n.º 1
0
 protected void btDangNhap_Click(object sender, EventArgs e)
 {
     class_TracNghiem ob = new class_TracNghiem();
     if (ob.login_check(tbPass.Text))
         if (lbID.Text != "")
         {
             HttpCookie obCookie = new HttpCookie("EXAMS");
             obCookie.Value = lbID.Text;
             obCookie.Expires = DateTime.Today.AddDays(1);
             Response.Cookies.Add(obCookie);
             Response.Redirect("User_Exam.aspx");
         }
         else { }
     else lbTrangThai.Text = "Mật khẩu không đúng";
 }