protected void btnDelete_Click(object sender, EventArgs e) { bool msg = Member_DAL.Delete(Convert.ToInt32(ViewState["Mem_id"])); if (msg == true) { Label1.Text = "Member Has Been Deleted Successfully!"; } else { Label1.Text = "Error to delete -> "; } BindData(); udp.Update(); }
public bool Delete(int id) { return(Member_DAL.Delete(id)); }