Esempio n. 1
0
        protected void DropDownList1_SelectedIndexChanged(object sender, EventArgs e)
        {
            BusinessLayer.ReportsManager repMgr = new BusinessLayer.ReportsManager();

            DataTable dt = new DataTable();

            dt = repMgr.GetCentreReportBLL(DropDownList1.SelectedValue);


            GridView1.DataSource = dt;
            GridView1.DataBind();

            //DropDownList1.DataSource = dt;
            //DropDownList1.DataBind();
            //DropDownList1.DataTextField = "CentreName_VCR";
            //DropDownList1.DataValueField = "CentreName_VCR";
            //DropDownList1.DataBind();
        }
Esempio n. 2
0
        protected void loadcentrelist()
        {
            BusinessLayer.ReportsManager repMgr = new BusinessLayer.ReportsManager();

            DataTable dt = new DataTable();

            dt = repMgr.GetCentreListBLL();



            DropDownList1.DataSource = dt;
            DropDownList1.DataBind();
            DropDownList1.DataTextField  = "CentreName_VCR";
            DropDownList1.DataValueField = "CentreName_VCR";
            DropDownList1.DataBind();

            //DropDownList1.Items.Add(new ListItem("-Select-", string.Empty));
            //DropDownList1.SelectedItem.Value = "-Select-";
        }