protected void Init_Form() { BindFunctions BindManager = new BindFunctions(); DataTable Month = BindManager.GetMonths(); BindManager.BindCombo(ddMonth, Month, "Name", "Id"); IReports ReportDetails = (IReports)ObjectFactory.CreateInstance("BusinessProcess.Reports.BReports,BusinessProcess.Reports"); DataSet repquarter = (DataSet)ReportDetails.GetReportQuarter(); BindManager.BindCombo(ddQuarter, repquarter.Tables[0], "QTR_Desc", "Qtr_pk"); }
private void BindDropdown() { BindFunctions objBindControls = new BindFunctions(); DataTable theDT = new DataTable(); theDT = objBindControls.GetMonths(); ddlFiscalyrmonth.Items.Clear(); objBindControls.Win_BindCombo(ddlFiscalyrmonth, theDT, "Name", "Id"); ddlStatus.Items.Clear(); ddlStatus.Items.Add("Active"); ddlStatus.Items.Add("In Active"); ddlStatus.SelectedIndex = 0; }