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(); }
public bool Delete(int id) { return(Plan_DAL.Delete(id)); }