protected void btUpdate_Click(object sender, EventArgs e)
 {
     if (MyDataSource.Update() >= 1)
     {
         Response.Write("<script>alert('修改成功')</script>");
     }
 }
Пример #2
0
        protected void Button1_Click(object sender, EventArgs e)
        {
            int i = MyDataSource.Update();

            if (i == 1)
            {
                message.Text = "Profile Updated Successfully !";
            }
        }