private void LoadBankAccountInfo(int UserId) { try { DataSet ds = BankAccounts.GetPrimaryBankAccount(UserId); if (ds != null && ds.Tables.Count > 0 && ds.Tables[0].Rows.Count > 0) { LoadBankAccountInfo(ds.Tables[0]); } else { lblNoPrimaryBankAccountOrCreditCard.Text = "Please Make a primary Bank Account and then proceed with the payments"; lblNoPrimaryBankAccountOrCreditCard.Visible = true; ScriptManager.RegisterStartupScript(this, GetType(), "fadeOut", "fadeOutInline();", true); dvInvoicePaymentPopup.Visible = false; } } catch (Exception ex) { new SqlLog().InsertSqlLog(0, "ViewInvoice.LoadBankAccountInfo", ex); } }