public MainLayout() { driver = new ChromeDriver(); SiteLogin siteLogin = new SiteLogin(driver); siteLogin.LoginOffice365(); }
protected void Page_Load(object sender, EventArgs e) { if (Request.IsAuthenticated) { SiteLogin.RedirectToDefaultPage(); } }
public ReviewPayroll() { driver = new ChromeDriver(); SiteLogin siteLogin = new SiteLogin(driver); siteLogin.LoginOffice365(); MainMenu menu = new MainMenu(driver); menu.GoToMenu("review-payroll"); }
protected void Page_Load(object sender, EventArgs e) { if (Request.IsAuthenticated) { SiteLogin.RedirectToDefaultPage(); return; } if (!IsPostBack) { var divSocialInterest = (HtmlGenericControl)Login1.FindControl("divSocialInterest"); divSocialInterest.InnerHtml = new TermsAndConditionBLL().GetAllTermsAndConditions().OrderByDescending(i => i.CreatedDate).FirstOrDefault().TermsAndConditionsInnerText; } }
protected void ButtonAdminLogOn_Click(object sender, EventArgs e) { if (String.IsNullOrEmpty(txtUserName.Value) || String.IsNullOrEmpty(txtPassword.Value)) { labelMessage.Text = MessageFormatter.GetFormattedErrorMessage("<strong>Login Please!</strong><hr/>You can login using a username and a password associated with your account. Make sure that it is typed correctly."); } else { if (txtUserName.Value == "any" && txtPassword.Value == "any")//if the log-in is successful { SiteLogin.PerformAdminAuthentication("admin1", checkBoxRemember.Checked); } else { labelMessage.Text = MessageFormatter.GetFormattedErrorMessage("<strong>Login Failed!</strong><hr/>The username and/or password you entered do not belong to any Administrator ccount on our system.<br/>You can login using a username and a password associated with your account. Make sure that it is typed correctly."); } } }
protected void Page_Load(object sender, EventArgs e) { SiteLogin.Focus(); }