Exemple #1
0
        protected override void OnPreRender(EventArgs e)
        {
            HtmlAnchor anchor = new HtmlAnchor();

            anchor.ID   = "bindingUrlTemplate";
            anchor.HRef = GetBindingPageUrl();

            this.bindingUrlContainer.Text = anchor.GetHtml();

            this.simulateDateRow.Visible = PassportSignInSettings.GetConfig().UseSimulateTime;

            if (this._Owner != null)
            {
                this.culture.Value = this._Owner.PageData.Properties.GetValue("SignInCulture", "zh-CN");

                string tenantCode = PassportManager.GetTenantCodeFromContext();

                if (tenantCode.IsNullOrEmpty())
                {
                    tenantCode = this._Owner.PageData.Properties.GetValue("TenantCode", string.Empty);
                }

                this.tenantCode.Text = tenantCode;
            }

            base.OnPreRender(e);
        }