Exemplo n.º 1
0
 private void FillData()
 {
     aBillModeDataTable = aBillBusinessLogic.GetBill();
     billingModeDropDownList.DataTextField = aBillModeDataTable.Columns[1].ToString();
     billingModeDropDownList.DataSource    = aBillModeDataTable;
     billingModeDropDownList.DataBind();
     billingModeDropDownList.Items.Insert(0, new ListItem(String.Empty, String.Empty));
 }
        private void FillData()
        {
            aPhysicianDataTable = aPhysicianBusinessLogic.GetPhysician();
            aPhysicianDataTable.Columns.Add("Physicians", typeof(string), "PhysicianId + '   ' + FirstName + '   ' + LastName ");
            administratedByDropDownList.DataSource     = aPhysicianDataTable;
            administratedByDropDownList.DataTextField  = "Physicians";
            administratedByDropDownList.DataValueField = "PhysicianId";
            administratedByDropDownList.DataBind();
            administratedByDropDownList.Items.Insert(0, new ListItem("Please select"));



            aBillModeDataTable = aBillBusinessLogic.GetBill();
            billingModeDropDownList.DataSource     = aBillModeDataTable;
            billingModeDropDownList.DataTextField  = aBillModeDataTable.Columns[1].ToString();
            billingModeDropDownList.DataValueField = aBillModeDataTable.Columns[1].ToString();
            billingModeDropDownList.DataBind();
            billingModeDropDownList.Items.Insert(0, new ListItem("Please select"));
        }