private void BindControls() { // load languages PortalUtils.LoadCultureDropDownList(ddlLanguage); // load themes BindThemes(); // try to get the last login name from cookie HttpCookie cookie = Request.Cookies["SolidCPLogin"]; 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; } }