ASP.NET MVC - Refresh PartialView when DropDownList changed ASP.NET MVC - Refresh PartialView when DropDownList changed ajax ajax

ASP.NET MVC - Refresh PartialView when DropDownList changed


I mean one option without seeing your PartialView is to wrap the PartialView in a div:

<div id="corners"><% Html.RenderPartial("Corners")%></div>

Then have your ajax call an action in your controller that will return a PartialViewResult and load the result into that div:

$.ajax({            type: "GET",            url: "Search/Search?section=" + section + "&township=" + township + "&range=" + range,            dataType: "html",            success: function (result) {                $('#corners').html(result);            }        });


$.ajax({ type: "GET", url: "/Search/Search?section=" + section + "&township=" + township + "&range=" + range, dataType: "html", success: function (result) { $('#corners').html(result); } });