title: specify name of dropdownlist asp.net mvc3 razor
body: <p>I am wondering why the following code:</p>
  
  <pre><code>@Html.DropDownList("Classification.Nationality.NationalityId", Model.Nationalities, new { @size = 10, @style = "display:none;", @class = "pickList" })
  </code></pre>
  
  <p>produces the following html, specifically why the name of the element is not "Classification.Nationality.NationalityId".</p>
  
  <pre><code>&lt;select style="display: none;" size="10" name="CollectionCategory.Classification.Nationality.NationalityId" id="CollectionCategory_Classification_Nationality_NationalityId" class="pickList"&gt;
  </code></pre>
  
  <p>where the function signature sure looks like this:</p>
  
  <pre><code>public static MvcHtmlString DropDownList(this HtmlHelper htmlHelper, string name, IEnumerable&lt;SelectListItem&gt; selectList, object htmlAttributes);
  </code></pre>
  
  <p>It seems like the name parameter gots overriden by view model of the parent view. ( This is in a partial view). Does this make sense to anyone?</p>