/// <summary> /// Binds all the Dropdowns with the necessary data /// </summary> private void BindDropDowns(string path) { userVo = (UserVo)Session["userVo"]; customerVo = (CustomerVo)Session["CustomerVo"]; portfolioId = int.Parse(Session[SessionContents.PortfolioId].ToString()); //Bind the Systematic Transaction Types to dropdown dtSystematicTransactionType = XMLBo.GetSystematicTransactionType(path); ddlSystematicType.DataSource = dtSystematicTransactionType; ddlSystematicType.DataTextField = "SystematicType"; ddlSystematicType.DataValueField = "SystemationTypeCode"; ddlSystematicType.DataBind(); ddlSystematicType.Items.Insert(0, "Select a Transaction Type"); // Bind the Frequency to dropdown dtFrequency = assetBo.GetFrequencyCode(path); ddlFrequency.DataSource = dtFrequency; ddlFrequency.DataTextField = "Frequency"; ddlFrequency.DataValueField = "FrequencyCode"; ddlFrequency.DataBind(); ddlFrequency.Items.Insert(0, "Select Frequency"); //Bind the Customer Account Details to dropdown if (schemePlanCode != 0) { dsCustomerMFAccounts = customerAccountBo.GetCustomerMFAccounts(portfolioId, AssetGroupCode, schemePlanCode); } else { dsCustomerMFAccounts = customerAccountBo.GetCustomerMFAccounts(portfolioId, AssetGroupCode, 0); } ddlMFAccount.DataSource = dsCustomerMFAccounts.Tables[0]; ddlMFAccount.DataTextField = "CMFA_FolioNum"; ddlMFAccount.DataValueField = "CMFA_AccountId"; ddlMFAccount.DataBind(); ddlMFAccount.Items.Insert(0, "Select a Folio"); }