コード例 #1
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            _userService = IoC.Resolve<IUserService>();

            if (! this.IsPostBack)
            {
                // Databind is required to bind the localized resources.
                this.DataBind();
            }
            if (this.Page is GeneralPage)
            {
                this._page = (GeneralPage)this.Page;
            }
        }
コード例 #2
0
        private void Page_Load(object sender, System.EventArgs e)
        {
            _userService = IoC.Resolve<IUserService>();

            if (! Context.User.Identity.IsAuthenticated)
            {
                ShowMessage(base.GetTextFromFile("NOTAUTHENTICATED"));
            }
            else
            {
                if (! this.IsPostBack)
                {
                    BindTimeZones();
                    BindUser();
                    // Databind is required to bind the localized resources.
                    base.BindResources();
                }
                if (this.Page is GeneralPage)
                {
                    this._page = (GeneralPage)this.Page;
                }
            }
        }