Esempio n. 1
0
        private void BindVehicle()
        {
            DropDownListVehicle.DataSource     = Vehicle.GetVehicleListByEmployeeId(this.employeeId);
            DropDownListVehicle.DataTextField  = "FormattedVehicle";
            DropDownListVehicle.DataValueField = "VehicleId";
            DropDownListVehicle.DataBind();

            //if (DropDownListVehicle.Items.Count > 1)
            //{
            DropDownListVehicle.Items.Insert(0, new ListItem("Please select", "0"));
            //}
        }