示例#1
0
        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);
        }
示例#2
0
        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;
        }