示例#1
0
        protected void btnDelete_Click(object sender, EventArgs e)
        {
            var msg = Plan_DAL.Delete(Convert.ToInt32(ViewState["Plan_id"]));

            if (msg)
            {
                Label1.Text = "Plan Has Been Deleted Successfully!";
            }
            else
            {
                Label1.Text = "Error to delete -> " + msg;
            }

            BindData();

            udp.Update();
        }
示例#2
0
 public bool Delete(int id)
 {
     return(Plan_DAL.Delete(id));
 }