//------------------------------------------------------------------------------------------- public void UpdatePage() { using (WeavverEntityContainer data = new WeavverEntityContainer()) { decimal balance = data.Total_ForLedger(SelectedOrganization.Id, LoggedInUser.OrganizationId, LedgerType.Receivable.ToString(), true, true, false, null, null); // data.Total_ForLedger(LoggedInUser.OrganizationId); var cards = (from items in data.Accounting_CreditCards where items.OrganizationId == SelectedOrganization.Id select items); CreditCards.DataSource = cards; CreditCards.DataTextField = "CensoredAccountNumber"; CreditCards.DataValueField = "Id"; CreditCards.DataBind(); if (balance < 0) { decimal amount = balance * -1; MinimumPaymentDue.Text = "$" + amount.ToString(); Balance.Text = "$" + amount.ToString(); PayBalanceAmount.Text = "$" + amount.ToString(); } } }