private void SearchGLAccountList() { try { GLAccountListBAL gLAccountListBAL = new GLAccountListBAL(); GLAccountListUI gLAccountListUI = new GLAccountListUI(); gLAccountListUI.Search = txtGLAccountSearch.Text; DataTable dtb = gLAccountListBAL.GetGLAccountListBySearchParameters(gLAccountListUI); if (dtb.Rows.Count > 0 && dtb != null) { gvGLAccountSearch.DataSource = dtb; gvGLAccountSearch.DataBind(); divGLAccountSearchError.Visible = false; } else { divGLAccountSearchError.Visible = true; lblGLAccountSearchError.Text = Resources.GlobalResource.msgNoRecordFound; gvGLAccountSearch.Visible = false; } } catch (Exception exp) { logExcpUIobj.MethodName = "SearchGLAccountList()"; logExcpUIobj.ResourceName = "Finance_Accounts_Payable_Non_PO_Based_Invoice_NonPOBasedInvoiceDistributionForm.CS"; logExcpUIobj.RecordId = "All"; logExcpUIobj.ExceptionDetails = "Error Occured. System Generated Error is: " + exp.ToString(); logExcpDALobj.SaveExceptionToDB(logExcpUIobj); log.Error("[Finance_Accounts_Payable_Non_PO_Based_Invoice_NonPOBasedInvoiceDistributionForm : SearchPaymentTermsList] An error occured in the processing of Record. Details : [" + exp.ToString() + "]"); } }