title: ASP.NET MVC - Refresh PartialView when DropDownList changed
body: <p>I have a search form that is an Ajax form. Within the form is a DropDownList that, when changed, should refresh a PartialView within the Ajax form (via a GET request). However, I'm not sure what to do in order to refresh the PartialView after I get back my results via the GET request.</p>
  
  <p><strong>Search.aspx</strong></p>
  
  <pre><code>&lt;%@ Page Title="" Language="VB" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage" %&gt;
  
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server"&gt;
      Search
  &lt;/asp:Content&gt;
  
  &lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
  
  &lt;script type="text/javascript"&gt;
      $(document).ready(function () {
          $("#Sections").change(function () {
  
              var section = $("#Sections").val();
              var township = $("#Townships").val();
              var range = $("#Ranges").val();
  
              $.ajax({
                  type: "GET",
                  url: "Search/Search?section=" + section + "&amp;township=" + township + "&amp;range=" + range,
                  contentType: "application/json; charset=utf-8",
                  dataType: "html",
                  success: function (result) {
                      // What should I do here to refresh PartialView?
                  }
              });
          });
  
      });
  &lt;/script&gt;
  
      &lt;h2&gt;Search&lt;/h2&gt;
  
      &lt;%--The line below is a workaround for a VB / ASPX designer bug--%&gt;
      &lt;%=""%&gt;
      &lt;% Using Ajax.BeginForm("Search", New AjaxOptions With {.UpdateTargetId = "searchResults", .LoadingElementId = "loader"})%&gt;        
          Township &lt;%= Html.DropDownList("Townships")%&gt;
          Range &lt;%= Html.DropDownList("Ranges")%&gt;
          Section &lt;%= Html.DropDownList("Sections")%&gt;
  
          &lt;% Html.RenderPartial("Corners")%&gt;
  
          &lt;input type="submit" value="Search" /&gt;        
          &lt;span id="loader"&gt;Searching...&lt;/span&gt;
      &lt;% End Using%&gt;
      &lt;div id="searchResults"&gt;&lt;/div&gt; 
  
  &lt;/asp:Content&gt;
  </code></pre>