protected void Button1_Click(object sender, EventArgs e) { userid = us.getUserID(); if (us.updateUserinfo(userid, TextBox1.Text, TextBox2.Text, TextBox3.Text) > 0) { Response.Write("<script>alert('资料修改成功');window.location.href='userinfo.aspx';</script>"); } else { Response.Write("<script>alert('资料修改不成功');window.location.href='userinfo.aspx';</script>"); } }