private void Signin_Load(object sender, System.EventArgs e) { if (!bool.Parse(portalSettings.CustomSettings["SITESETTINGS_ALLOW_NEW_REGISTRATION"].ToString())) { RegisterBtn.Visible = false; } if (bool.Parse(Settings["SIGNIN_AUTOMATICALLYHIDE"].ToString()) && Request.IsAuthenticated) { this.Visible = false; } else if (!bool.Parse(Settings["SIGNIN_ALLOW_AUTOCOMPLETE"].ToString())) { //New setting on Signin fo disable IE autocomplete by Mike Stone password.Attributes.Add("autocomplete", "off"); } if (!IsPostBack) { GroupList.Items.Add(new ListItem("Default", "Default")); string contexts = System.Configuration.ConfigurationSettings.AppSettings["LDAPContexts"]; if (contexts != null) { string[] names = contexts.Split(";".ToCharArray()); for (int i = 0; i < names.Length; i++) { GroupList.Items.Add(new ListItem(LDAPHelper.GetContext(names[i]), names[i])); } } LDAPCheckBox.Checked = "True" == Settings["LDAP"].ToString(); } }