protected void NewPasswordButton_Click(object sender, EventArgs e) { string query = "UPDATE UserAccount SET Password = '******' WHERE Username = '******'"; Models.Database db = new Models.Database(); db.Connect(); db.UpdatePassword(query); this.Session["RecoveryStep"] = "1"; Response.Redirect("~/Views/LogIn.aspx"); }