title: (MVC 5) Refresh DropDownListFor Selected Value while updating Partial View
body: <p>I have a Partial View with a DropDownListFor-Element.</p>
  
  <p><strong>Partial View</strong></p>
  
  <pre><code>@model Person
  
  &lt;h4&gt;Show me OrganizationID: @Model.Organization_ID&lt;/h4&gt;
  @Html.DropDownListFor(model =&gt; model.Organization_ID, new SelectList(ViewBag.AllOrganizations, "ID", "Name"))
  </code></pre>
  
  <p>Now when updating the Partial View via JQuery and change the "Organization_ID" of the model in the controllers action method, the selected item of DropDownListFor will be not changed after update, even though the organization exists in the DropDownList!</p>
  
  <p><strong>JQuery</strong> (in Create.cshtml)</p>
  
  <pre><code>var url = '@Html.Raw(Url.Action("ReloadPerson", "Home"))';
  $('#divPerson').load(url, $('#formPerson').serializeArray());
  </code></pre>
  
  <p><strong>Controller</strong></p>
  
  <pre><code>public ActionResult ReloadPerson([Bind(Include = "ID,  [...], Organization_ID")] Person person)
  {
        ViewBag.AllOrganizations = _ecmManager.GetAllOrganizations ();
        person.Organisation_ID = (Guid)TempData["Organization_ID"];
  
        return PartialView("Person", person);
   }
  </code></pre>
  
  <p>The action method puts via TempData a new ID in the property of my object and send it back to the Partial View model. The h4-header shows me after updating the new organization-id, but my DropDownListFor-Element doesn't select the organization he get from the model. </p>
  
  <p>The functionality of DropDownListFor is tested:</p>
  
  <pre><code>public ActionResult Create()
  {
      ViewBag.AllOrganizations = _ecmManager.GetAllOrganisationen();
  
      return View(new Person() { Organization_ID = _ecmManager.GetOrganizationByID(new Guid("E2A9C501-1E53-4074-9B4B-04C693FB753A")).ID });
  }
  </code></pre>
  
  <p>I've tested the functionality, when loading my View with an explicit model and it works how it should. The dropdownlistfor auto-selected the organization from its modelbinding.</p>
  
  <p><strong>So, how can I update my DropDownListFor-Element after Partial View Update (no reloading of the whole page via JQuery)?</strong></p>