コード例 #1
0
ファイル: Login.aspx.cs プロジェクト: mmols/pricing-providers
        protected void Page_Load(object sender, EventArgs e)
        {
            _signInManager          = Request.GetOwinContext().Get <ApplicationSignInManager>();
            LoginCtrl.Authenticate += LoginCtrl_Authenticate;

            if (IsPostBack)
            {
                return;
            }
            LoginCtrl.FindControl("ApplicationRow").Visible = AppContext.Current.GetApplicationDto().Application.Count != 1;
            LoginCtrl.Focus();
        }
コード例 #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            Page.Header.DataBind();

            SignInManager           = Request.GetOwinContext().Get <ApplicationSignInManager <SiteUser> >();
            LoginCtrl.Authenticate += LoginCtrl_Authenticate;

            if (IsPostBack)
            {
                return;
            }
            LoginCtrl.FindControl("ApplicationRow").Visible = Mediachase.Commerce.Core.AppContext.Current.GetApplicationDto().Application.Count != 1;
            LoginCtrl.Focus();
        }