protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindUser(); if (PortalUtils.GetHideDemoCheckbox()) { chkDemo.Visible = lblDemoAccount.Visible = false; } } }
private void BindForm() { UserSettings settings = ES.Services.Users.GetUserSettings(PanelSecurity.LoggedUserId, UserSettings.ACCOUNT_SUMMARY_LETTER); bool accountSummaryEmailEnabled = !String.IsNullOrEmpty(settings["EnableLetter"]) && Utils.ParseBool(settings["EnableLetter"], false); this.chkAccountLetter.Enabled = accountSummaryEmailEnabled; this.pnlDisabledSummaryLetterHint.Visible = !accountSummaryEmailEnabled; if (PortalUtils.GetHideDemoCheckbox()) { this.lblDemoAccount.Visible = this.chkDemo.Checked = this.chkDemo.Visible = false; } //reseller.UserId = PanelSecurity.SelectedUserId; userPassword.SetUserPolicy(PanelSecurity.SelectedUserId, UserSettings.SolidCP_POLICY, "PasswordPolicy"); }
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { BindUser(); if (PortalUtils.GetHideDemoCheckbox()) { rowDemo.Visible = false; } } if (PanelSecurity.LoggedUser.Role == UserRole.User) { txtSubscriberNumber.ReadOnly = true; } }