title: Jquery post recieves data from controller but won't render
body: <p>I have controller method in my MVC application that I am calling using the jQuery <code>$.post...</code>.  The call is executing correctly, processing and sending a valid result back to the view for rendering.  If I alert the result everything is received on the client as expected but the data is not rendered to the view.</p>
  
  <p>The controller method is as below</p>
  
  <pre><code>public ActionResult SearchWithCriteria(string search)
  {
      var companyList = new Companies().SearchCompanies(search);
      return  PartialView ("Partials\\SearchResults", new SearchViewModel() { SearchResults = companyList });
  }
  </code></pre>
  
  <p>and the jQuery is as below</p>
  
  <pre><code>$("#submit").bind("click", function () {
                  var searchCriteria = $("#SearchCriteria").val();
                  if (searchCriteria.length &gt; 0) {
                      $.post('/Search/SearchWithCriteria', { search: searchCriteria }, function (data) {
                          alert(data);
                          $("companyDetailsSearch").html(data);
                      });
                  }
              });
  </code></pre>
  
  <p>The partial is strongly typed and if I put breakpoints on the code I can step through it, but as I say nothing is rendered by the view.</p>