protected void OnDeleteNotifyAction_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(hfNotifyActionID.Value)) // delete if an existing record { SQMModelMgr.DeleteNotifyAction(new PSsqmEntities(), Convert.ToDecimal(hfNotifyActionID.Value)); hfNotifyActionID.Value = ""; if (OnNotifyActionCommand != null) { OnNotifyActionCommand("delete"); } } }