title: How to pass value of Html.Dropdownlist to Controller
body: <p>I am dynamically generating a dropdownbox.
  I am trying to send the selected value in dropdown box as one of the fields of a model to controller.</p>
  
  <pre><code>@using (Html.BeginForm("AddItem", "Home", FormMethod.Post, new { enctype = "multipart/form-data" }))
      {
          &lt;label&gt;
              Category:&lt;/label&gt;
          @Html.DropDownList("Category", (IEnumerable&lt;SelectListItem&gt;)ViewData["CategoryList"])&lt;br /&gt;
          &lt;label&gt;
              Sku:&lt;/label&gt;
          @Html.TextBox("newItem.Sku")&lt;br /&gt;
          &lt;label&gt;
              Title:&lt;/label&gt;
          @Html.TextBox("newItem.Title")&lt;br /&gt;
  </code></pre>
  
  <p>I am able to send all the values as a part of model, except the value of Category(dropdownbox value), hence making the function in controller to fail..</p>
  
  <p><strong>ANSWER:</strong> Renaming the Dropdownlist "Category" to = "newItem.Category", did the work, basically it should match the model name.</p>