protected void btDelete_Click(object sender, EventArgs e)
 {
     if (MyDataSource.Delete() >= 1)
     {
         Response.Write("<script>alert('删除成功')</script>");
     }
 }
예제 #2
0
        protected void Button3_Click(object sender, EventArgs e)
        {
            int i = MyDataSource.Delete();

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