On a button click I fetch some data using jquery $.ajax, calling controller action method and return a strongly typed partial view. Data is displayed in a table.
when data is available I also need to render another strongly typed partial view (same model as for resultSetView) to display page navigation buttons for the resultSetView.
How can I do the second part?
$.ajax({
type: "POST",
url: $form.attr('action'),
data: $form.serialize(),
error: function (xhr, status, error) {
//do something about the error
},
success: function (response) {
$("#resultSetDiv").html(response);
//need to reload pageNavigationDiv
}
});
Markup is like
<div id="pageNavigation >
@Html.Partial("_pageNavigationView")
</div>
<div id="resultSetDiv">
@RenderSection("_resultSetView")
</div>