protected void DeleteRecord(object sender, ListViewDeleteEventArgs e) { string ReligionID = ListView1.DataKeys[e.ItemIndex].Value.ToString(); ResultDTO resultDTO = objITransactionBusiness.DeleteMReligion(ReligionID); if (resultDTO.IsSuccess) { pnlstatus.BackColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.SuccessBackGroundColor); lblstatus.ForeColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.SuccessForeColor); lblstatus.Text = resultDTO.Message; this.PopulateData(); } else { pnlstatus.BackColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.ErrorBackGroundColor); lblstatus.ForeColor = System.Drawing.ColorTranslator.FromHtml(PHCConstant.ErrorForeColor); lblstatus.Text = resultDTO.Message; } }