protected void btUpdate_Click(object sender, EventArgs e) { if (MyDataSource.Update() >= 1) { Response.Write("<script>alert('修改成功')</script>"); } }
protected void Button1_Click(object sender, EventArgs e) { int i = MyDataSource.Update(); if (i == 1) { message.Text = "Profile Updated Successfully !"; } }