protected void BtnLogin_Click(object sender, EventArgs e) { DataTable DtLogin = new DataTable(); DtLogin = ClsLogin.DtLogin(TxtUser.Text, TxtPassword.Text); if (DtLogin.Rows.Count != 0) { Response.Redirect("~/HomePage.aspx"); } else { LblWarning.Text = "Username Atau Pasword Anda Salah ..."; } }
protected void btnLogin_Click(object sender, EventArgs e) { DataTable dtLogin = new DataTable(); dtLogin = ClsLogin.DtLogin(txtUsername.Text, txtPassword.Text); if (dtLogin.Rows.Count != 0) { Response.Redirect("~/Status.aspx"); } else { lblWarning.Text = "Your Username or Password Incorrect"; } }
protected void btn_Login_Click(object sender, EventArgs e) { DataTable DtLogin = new DataTable(); DtLogin = ClsLogin.DtLogin(txtUsername.Text, txtPassword.Text); if (DtLogin.Rows.Count == 1) { Response.Redirect("~/result.aspx"); } else { LblWarning.Text = "Username Atau Password Anda Salah!"; } }