ASP.NET MVC – Combine Json result with ViewResult
You can also render a PartialViewResult to a string, and then pass this string via JSON to your view, rendering it in your page using jQuery. You can see that in this post: http://www.atlanticbt.com/blog/asp-net-mvc-using-ajax-json-and-partialviews/. I’ve created an extension to make it easier: public static class MvcHelpers { public static string RenderPartialView(this Controller controller, string viewName, … Read more