title: Update drop down using Ajax.ActionLink
body: <p>I am trying to update the dropdown list:</p>
  
  <p>View:</p>
  
  <pre><code>&lt;div class="editor-field"&gt;
                  Names: &lt;%: Html.DropDownList("names", (SelectList)ViewData["Names"]) %&gt;
                  &lt;%:Ajax.ActionLink("Refresh", "GetNames", new AjaxOptions { UpdateTargetId = "names", HttpMethod = "GET" })%&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre><code>    [HttpGet]
      public ActionResult GetNames()
      {
          List&lt;String&gt; names = this.GenerateNames();
  
          return Json(new SelectList(names));
      }
  </code></pre>
  
  <p>The flow is the following: when user makes the first request, the list is updated from viewdata, then user presses refresh and the dropdown is populated usin ajax request.</p>
  
  <p>I tried to return both JSON result - the dropdown is not updated. When returning SelectList the dropdown just gets cleared.</p>
  
  <p>How can I accomplish this task?</p>