private void Submit_Click(object sender, System.EventArgs e) { //store new user information to database string uID = Request.QueryString["id"]; user = new User(uID); ProfileControl1.fillUser(user); user.updateProfile(); //Response.Redirect(Request.Url.AbsoluteUri); }
private void SubmitButton_Click(object sender, System.EventArgs e) { StatusLabel.Visible = false; if (!Page.IsValid) { return; } // create a user obj, fill it from the profile control, // and update the database PMT.User user = new User(Request.Cookies["user"]["id"]); ProfileControl1.fillUser(user); user.updateProfile(); StatusLabel.Text = "Your profile has been updated."; StatusLabel.Visible = true; }