protected void btnDelete_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(hfID.Value) == false) { objPayrollMgr.DeleteBonusPolicyData(hfID.Value.Trim()); Common.EmptyTextBoxValues(this); this.OpenRecord(); lblMsg.Text = "Record Deleted Successfully"; } else { lblMsg.Text = "Select a item from the list then try to delete."; } this.EntryMode(false); }