title: How to get value of Html.DropDownList in the controller?
body: <p>I have assigned the following viewbag in the controller</p>
  
  <pre><code>public ActionResult new_vehicle()
      {
          ViewBag.customers = new SelectList(db.customers, "cust_id", "cust_name");
          return View(db.vehicles.ToList());
      }
  </code></pre>
  
  <p>and the code in view is</p>
  
  <pre><code> @Html.DropDownList("customers", "Select Customer");
  </code></pre>
  
  <p>the code for add function is</p>
  
  <pre><code>public ActionResult veh_AddEdit()
      {
          int id = Convert.ToInt32(Request["vehiddenID"]);
          if (id == 0)
          {
  
              vehicle veh = new vehicle();
              Session["veh_id"] = "";
  
              veh.cust_id_fk = Convert.ToInt32(Request.Form["customers"]);
              veh.veh_make = Request["vemake"];
              veh.veh_name = Request["vename"];
              veh.veh_model = Request["vemodel"];
              db.vehicles.Add(veh);
              db.SaveChanges();
              int latestEmpId = veh.veh_id;
          }
  
          return RedirectToAction("new_vehicle");
      }
  </code></pre>
  
  <p>The problem is that its not getting the selected value i.e foreign key in the controller. </p>