예제 #1
0
 void DisplayAddress()
 {
     GTAutosClasses.ClsCarCollection AllCars = new GTAutosClasses.ClsCarCollection();
     lstCarList.DataSource     = AllCars.CarList;
     lstCarList.DataValueField = "CarID";
     lstCarList.DataTextField  = "Make";
     lstCarList.DataBind();
 }
예제 #2
0
    void DisplayCars()
    {
        GTAutosClasses.ClsCarCollection cars = new GTAutosClasses.ClsCarCollection();

        DropDownCars.DataSource     = cars.CarList;
        DropDownCars.DataValueField = "CarID";
        DropDownCars.DataTextField  = "DataField";
        DropDownCars.DataBind();
    }