コード例 #1
0
        public MainLayout()
        {
            driver = new ChromeDriver();
            SiteLogin siteLogin = new SiteLogin(driver);

            siteLogin.LoginOffice365();
        }
コード例 #2
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (Request.IsAuthenticated)
     {
         SiteLogin.RedirectToDefaultPage();
     }
 }
コード例 #3
0
        public ReviewPayroll()
        {
            driver = new ChromeDriver();
            SiteLogin siteLogin = new SiteLogin(driver);

            siteLogin.LoginOffice365();
            MainMenu menu = new MainMenu(driver);

            menu.GoToMenu("review-payroll");
        }
コード例 #4
0
ファイル: log-in.aspx.cs プロジェクト: galdo06/Apicem
 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;
     }
 }
コード例 #5
0
 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.");
         }
     }
 }
コード例 #6
0
 protected void Page_Load(object sender, EventArgs e)
 {
     SiteLogin.Focus();
 }