private void loadVehicleType()
 {
     Customer login = (Customer)Session["login"];
     VehicleDAO obj_vehicleDAO = new VehicleDAO(login.CustomerID, login.PassWord);
     vehicleTypeDropDownList.DataSource = obj_vehicleDAO.GetVehicleTypes();
     vehicleTypeDropDownList.DataBind();
     customerIdLabel.Text = login.customerFirstname + " " + login.customerLastname;
 }
 protected void searchButton_Click(object sender, EventArgs e)
 {
     Customer login = (Customer)Session["login"];
     VehicleDAO obj_vehicleDAO = new VehicleDAO(login.CustomerID, login.PassWord);
     string vehicleType = vehicleTypeDropDownList.SelectedValue;
     string modelVehicle = availableVehicleTextBox.Text;
     List<Vehicle> obj_vehicle_list = new List<Vehicle>();
     if (vehicleType == "0")
     {
         vehicleType = "";
     }
     obj_vehicle_list = obj_vehicleDAO.FindVehicles(vehicleType, modelVehicle);
     availableVehicleGridView.DataSource = obj_vehicle_list;
     availableVehicleGridView.Columns[1].Visible = true;
     availableVehicleGridView.DataBind();
     noVehicleLabel.Visible = (obj_vehicle_list.Count == 0);
     availableVehicleGridView.Columns[1].Visible = false;
 }