title: How to make UpdateTargetId work in Ajax.ActionLink?
body: <p>I have this method in the controller</p>
  
  <pre><code>[HttpDelete]
  public void DeleteDocument(int id)
  {
     //Here I do the deletion in the db
  }
  </code></pre>
  
  <p>In the view I have this, calling a method that returns a partial view</p>
  
  <pre><code>@{ Html.RenderAction("GetDocumentsByMember"); }
  </code></pre>
  
  <p>The GetDocumentsByMember method</p>
  
  <pre><code>    public ActionResult GetDocumentsByMember()
      {
          var companyGuid = HttpContextHelper.GetUserCompanyGuid();
  
          var documents = _service.GetUploadedDocumentsByMember(companyGuid);
  
          return PartialView(documents);
      }
  </code></pre>
  
  <p>And the partial view</p>
  
  <pre><code>@model IEnumerable&lt;GradientCapital.DomainModel.Entity.Document.Document&gt;
  &lt;div id="uploadeddocuments"&gt;
      @*Here there's a table and at one of the columns there's the next link*@
  
      &lt;td id="delete"&gt;
          @Ajax.ActionLink("Delete", "DeleteDocument", new { id = document.Id },
          new AjaxOptions
              {
                 Confirm = "Are you sure you want to delete?",
                 HttpMethod = "DELETE",
                 OnComplete = "deleteComplete"
              })
      &lt;/td&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And deleteComplete just refresh everything</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      function deleteComplete() {
          window.location.reload();
      }
  &lt;/script&gt;
  </code></pre>
  
  <p>Quite long (is correctly formatted?) code for a simple question, I can't make the ajaxoption UpdateTargetId work here instead of having to call this deleteComplete function. Any idea?</p>
  
  <p>Thanks</p>