protected void lbtnDelete_Click(object sender, EventArgs e) { string pickListNo = ((LinkButton)sender).CommandArgument; try { ThePickListMgr.DeletePickList(pickListNo, this.CurrentUser); ShowSuccessMessage("MasterData.PickList.DeletePickList.Successfully", pickListNo); UpdateView(); } catch (BusinessErrorException ex) { ShowErrorMessage(ex); } }
protected void btnDelete_Click(object sender, EventArgs e) { try { ThePickListMgr.DeletePickList(this.tbPickListNo.Text.Trim(), this.CurrentUser); ShowSuccessMessage("MasterData.PickList.DeletePickList.Successfully", this.tbPickListNo.Text.Trim()); if (DeleteEvent != null) { DeleteEvent(sender, e); } } catch (BusinessErrorException ex) { ShowErrorMessage(ex); } }