private void PopulateBanks(string TypeValue) { PCSN.InvoiceSystem.BusinessLogicLayer.BankAccountInfo ChequeBook = new PCSN.InvoiceSystem.BusinessLogicLayer.BankAccountInfo(); dtCboFill = ChequeBook.GetBankAccountInfoForDropDown(); if (TypeValue == "Daily") { cboIDDate.DataSource = dtCboFill; cboIDDate.DataTextField = "Name"; cboIDDate.DataValueField = "ID"; cboIDDate.DataBind(); } if (TypeValue == "Monthly") { cboIDMonthly.DataSource = dtCboFill; cboIDMonthly.DataTextField = "Name"; cboIDMonthly.DataValueField = "ID"; cboIDMonthly.DataBind(); } if (TypeValue == "Yearly") { cboIDYearly.DataSource = dtCboFill; cboIDYearly.DataTextField = "Name"; cboIDYearly.DataValueField = "ID"; cboIDYearly.DataBind(); } }
private void PopulateBanks() { PCSN.InvoiceSystem.BusinessLogicLayer.BankAccountInfo ChequeBook = new PCSN.InvoiceSystem.BusinessLogicLayer.BankAccountInfo(); dtChequeIssueDG = ChequeBook.GetBankAccountInfoForDropDown(); cboBank.DataSource = dtChequeIssueDG; cboBank.DataTextField = "Name"; cboBank.DataValueField = "ID"; cboBank.DataBind(); }