Example #1
0
 protected void btnLogin_Click(object sender, EventArgs e)
 {
     if (!string.IsNullOrEmpty(txtUserName.Text.Trim()) &&
         !string.IsNullOrEmpty(txtPassword.Text.Trim()))
     {
         DataTable dt = new DataTable();
         dt = _admin.Login(txtUserName.Text.Trim(), txtPassword.Text.Trim());
         if (dt.Rows.Count > 0)
         {
             Session["username"] = txtUserName.Text.Trim();
             Response.Redirect("~/admin/QLDuLieuNguoiDung/DuLieuNguoiDung/XemDuLieuNguoiDung.aspx");
         }
     }
 }