private void LoadRecord() { Int32 iID = Convert.ToInt32(Common.Decrypt(Request.QueryString["id"], Session.SessionID)); ChartOfAccounts clsChartOfAccount = new ChartOfAccounts(); ChartOfAccountDetails clsDetails = clsChartOfAccount.Details(iID); clsChartOfAccount.CommitAndDispose(); lblAccountID.Text = clsDetails.ChartOfAccountID.ToString(); cboAccountCategory.SelectedIndex = cboAccountCategory.Items.IndexOf(cboAccountCategory.Items.FindByValue(clsDetails.AccountCategoryDetails.AccountCategoryID.ToString())); txtAccountCode.Text = clsDetails.ChartOfAccountCode; txtAccountName.Text = clsDetails.ChartOfAccountName; txtDebit.Text = clsDetails.Debit.ToString("###0.#0"); txtCredit.Text = clsDetails.Credit.ToString("###0.#0"); }