コード例 #1
0
    protected void Button1_Click(object sender, EventArgs e)
    {
        string   username = Session["username"].ToString();
        string   password = TextBox1.Text;
        string   email    = TextBox4.Text;
        string   question = TextBox2.Text;
        string   answer   = TextBox3.Text;
        Userinfo us       = new Userinfo();
        int      i        = us.updateUser(username, password, email, question, answer);

        if (i > 0)
        {
            Response.Write("<script>alert('修改成功');</script>");
        }
    }