protected void edit_Click(object sender, EventArgs e) { string newpassword = newpass.Value; string email = Session["Email"].ToString(); Login1 loginclass = new Login1(); int userid = loginclass.GetuserID(email); loginclass.ChangePass(newpassword, userid); Response.Redirect("Cust_ViewProfile.aspx"); }