コード例 #1
0
        protected void onmemupdate(object sender, EventArgs e)
        {
            string username = Session["User"].ToString();
            string pass     = TextBox3.Text.ToString();
            string dob      = TextBox5.Text.ToString();
            string email    = TextBox4.Text.ToString();
            string fname    = TextBox1.Text.ToString();
            string lname    = TextBox2.Text.ToString();

            if (bl.updatememprofile(username, pass, dob, email, fname, lname) == true)
            {
                Response.Redirect("showupsuccess.aspx");
            }
            else
            {
                Page.ClientScript.RegisterStartupScript(this.GetType(), "hwe", "showerror('Password must be greater than 3 characters');", true);
            }
        }