protected void Page_Load(object sender, EventArgs e) { // Bind data to make sure that layout controls are created. LoginPanel.DataBind(); var en = SecurityContext.Current.AllowUsersToLogin; HelperFunctions.EnableControl(Login1, en, en ? null : "Login Disabled"); ScriptPlaceHolder.Visible = AutoFocus && !IsPostBack; }
protected void Page_Load(object sender, EventArgs e) { LoginPanel.DataBind(); Login1.FindControl("LoginErrorPanel").Visible = false; ScriptPlaceHolder.Visible = AutoFocus && !IsPostBack; }