protected void Edit_Password(object sender, EventArgs e) { password_form.Visible = true; data_form.Visible = false; if (password != null && new_password != null) { db = new SQLDatabase(); db.Connect(); if (pass.Equals(password.Value)) { db.EditPassword(id, new_password.Value); Session.RemoveAll(); Response.Redirect("Login.aspx"); } db.Disconnect(); } }