PartialView()

noun

say it: “PAR-shul VYOO” /ˈpɑːrʃəl vjuː/

A controller method that returns just a partial view's HTML, without the page layout.

What is PartialView() in ASP.NET Core?

PartialView() — A controller method that renders just a partial view and returns its HTML, with no layout around it. JavaScript can fetch that HTML and drop it into part of the page.

public IActionResult Card(int id) =>
    PartialView("_ProductCard", productDao.GetById(id));

In a sentence

  • “The Card action returns PartialView("_ProductCard", product) for fetch to drop into the page.”

Level: Journeyman · More ASP.NET Core terms at this level

Updated