protected void Page_Load(object sender, EventArgs e) { MultiViewLoadLogins.SetActiveView(LoginTabs); btnBack.Visible = false; btnSubmit.Visible = false; if (!IsPostBack) { NAV nav = new Config().ReturnNav(); } }
protected void btnPassword_Click(object sender, EventArgs e) { //btnSignup.Visible = false; btnLogin.Visible = false; MultiViewLoadLogins.SetActiveView(View2); btnSubmit.Visible = true; btnBack.Visible = true; lblError.Text = ""; }
protected void btnbackJointL_Click(object sender, EventArgs e) { btnResetJpass.Visible = false; btnBack.Visible = false; MultiViewLoadLogins.SetActiveView(jointLogin); //btnSignup.Visible = true; btnJlogin.Visible = false; btnFirstJlogin.Visible = true; lblError.Text = ""; }
protected void LnkbtnPassJoint_Click(object sender, EventArgs e) { //btnSignup.Visible = false; btnLogin.Visible = false; MultiViewLoadLogins.SetActiveView(JointResetView); btnSubmit.Visible = false; btnResetJpass.Visible = true; btnBack.Visible = true; lblError.Text = ""; }
protected void btnBack_Click(object sender, EventArgs e) { btnSubmit.Visible = false; btnBack.Visible = false; MultiViewLoadLogins.SetActiveView(individualLogin); //btnSignup.Visible = true; btnLogin.Visible = false; btnFirstLogin.Visible = true; lblError.Text = ""; }
protected void btnIbank_Click(object sender, EventArgs e) { //Response.Redirect("RegisterMemberForm.aspx"); //btnSignup.Visible = false; btnLogin.Visible = false; MultiViewLoadLogins.SetActiveView(View2); btnSubmit.Visible = true; btnBack.Visible = true; lblError.Text = ""; }
protected void btnResetJpass_Click(object sender, EventArgs e) { string userName = txtAccountno.Text.Trim().Replace("'", ""); string userPassword = txtidNo.Text.Trim().Replace("'", ""); var idcheck = WSConfig.ObjNav.FnGetSignatoryId(userName, userPassword); var emalcheck = WSConfig.ObjNav.FnGetSignatoryEmail(userName, userPassword); var phonecheck = WSConfig.ObjNav.FnGetSignatoryPhone(userName, userPassword); //var idcheck = nav.JointAccountLogin.Where(r => r.Account_No == userName).Select(k => k.ID_No).SingleOrDefault(); //var emalcheck = nav.JointAccountLogin.Where(r => r.Account_No == userName).Select(k => k.Email_Address).SingleOrDefault(); //var phonecheck = nav.JointAccountLogin.Where(r => r.Account_No == userName).Select(k => k.Mobile_Phone_No).SingleOrDefault(); if (string.IsNullOrEmpty(userPassword) && string.IsNullOrEmpty(userName)) { lblError.Text = "Account No or National ID Empty!"; btnResetJpass.Visible = true; btnBack.Visible = true; //btnSignup.Visible = false; btnJlogin.Visible = false; MultiViewLoadLogins.SetActiveView(JointResetView); return; } else { try { var nPassword = NewPassword(); var CompEmail = WSConfig.ObjNav.FnUpdatePasswordJointAccount(txtAccountno.Text.Trim(), txtidNo.Text.Trim(), EncryptP(nPassword)); if (WSConfig.MailFunction(string.Format("Dear Sacco Member,\n Your New password is: {0}", nPassword), CompEmail, "Portal password reset successful") && !String.IsNullOrEmpty(CompEmail)) { SACCOFactory.ShowAlert( "A New Password has been generated and sent to your Personal mail and Mobile Phone.Kindly use to it to login to your Member portal"); btnResetJpass.Visible = false; //txtAccountno.Enabled = false; //txtidNo.Enabled = false; btnBack.Visible = false; //MultiView1.SetActiveView(View1); //btnSignup.Visible = true; btnJlogin.Visible = true; lblError.Text = ""; } else if (idcheck != userPassword) { SACCOFactory.ShowAlert( "Your Password could not be reset. Account number does not match your ID number!"); btnSubmit.Visible = true; btnBack.Visible = true; //btnSignup.Visible = false; btnJlogin.Visible = false; MultiViewLoadLogins.SetActiveView(JointResetView); } else if (string.IsNullOrEmpty(emalcheck) && phonecheck != null) { SACCOFactory.ShowAlert( "Your Password was send to your Phone Number"); btnSubmit.Visible = false; txtEmployeeNo.Enabled = false; idNo.Enabled = false; btnBack.Visible = false; // MultiView1.SetActiveView(View1); //btnSignup.Visible = true; btnJlogin.Visible = true; lblError.Text = ""; } } catch (Exception exception) { SACCOFactory.ShowAlert(exception.Message); } } btnResetJpass.Visible = true; btnBack.Visible = true; //btnSignup.Visible = false; btnJlogin.Visible = false; MultiViewLoadLogins.SetActiveView(JointResetView); }