In this article we will explain how to return partial view from controller action in mvc using jQuery ajax or how to return and render partial view from controller action in mvc Using http post method in JQuery ajax with example.


To return a Partial view from the controller action method In Asp.Net MVC

, we can write return type as PartialViewResult and return using PartialView method.

  • Let’s see a demonstration example of PartialViewResult() method 


    Layout = null;
<!DOCTYPE html>
 <meta name="viewport" content="width=device-width" />
 <title>Reder Partial View</title>
<link href=""rel="stylesheet" />
 <script src=""></script>
 <script src=""></script>
            type: "POST",
            url: '@Url.Action("ProductList","Home")',
            data: {},
            success: function (viewHTML) {
            error: function (errorData) {alert(errorData) }
    <div id="ProductList">       


@model List<Tutorials.Product>
<div class="table-responsive" style="width:500px;">
    <table class="table">
                <th>Product Name</th>
                <th>Model No</th>
            @foreach(var item in Model)



 using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
namespace Tutorials.Controllers
    public class HomeController : Controller
    {                public ActionResult Index()
            return View();
        public PartialViewResult ProductList()
            ArticleEntities db=new ArticleEntities ();
            return PartialView(db.Product.ToList());


In the above code, we know that ProductList.cshtml exists in this controller specific folder otherwise we need to specify the complete file name of the view from the root of the application (like "~/Views/Home/ProductList").


How to Return a partial view from controller action method in ASP.NET MVC

I hope it will help to you.

Leave a comment

Make sure you enter the (*) required information where indicated. HTML code is not allowed.

You may also like