Esempio n. 1
0
        private void BindCar()
        {
            ClCar cl = new ClCar();

            cl.PersonID = Convert.ToInt32(lblPersonID.Text);
            cl.yearID   = Convert.ToInt32(ddYear.SelectedValue);

            ddCar.DataSource     = CarClass.GetListCarInYear(cl);
            ddCar.DataTextField  = "carname";
            ddCar.DataValueField = "CarID";
            ddCar.DataBind();
        }