Beispiel #1
0
        private void BindControls()
        {
            // load languages
            PortalUtils.LoadCultureDropDownList(ddlLanguage);

            // load themes
            PortalUtils.LoadThemesDropDownList(ddlTheme);

            // try to get the last login name from cookie
            HttpCookie cookie = Request.Cookies["WebsitePanelLogin"];

            if (cookie != null)
            {
                txtUsername.Text = cookie.Value;
                txtPassword.Focus();
            }
            else
            {
                // set focus on username field
                txtUsername.Focus();
            }

            if (PortalUtils.GetHideThemeAndLocale())
            {
                ddlLanguage.Visible = false;
                lblLanguage.Visible = false;
                ddlTheme.Visible    = false;
                lblTheme.Visible    = false;
            }
        }