From 8c4f7a4325c593e37ce40118b6b404934bbfc300 Mon Sep 17 00:00:00 2001 From: Luke Latham Date: Wed, 23 Sep 2020 12:38:26 -0500 Subject: [PATCH] Enhance partial page description (#19975) --- aspnetcore/mvc/views/partial.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/aspnetcore/mvc/views/partial.md b/aspnetcore/mvc/views/partial.md index 5f66fe65df..687cc89554 100644 --- a/aspnetcore/mvc/views/partial.md +++ b/aspnetcore/mvc/views/partial.md @@ -12,7 +12,7 @@ uid: mvc/views/partial By [Steve Smith](https://ardalis.com/), [Maher JENDOUBI](https://twitter.com/maherjend), [Rick Anderson](https://twitter.com/RickAndMSFT), and [Scott Sauber](https://twitter.com/scottsauber) -A partial view is a [Razor](xref:mvc/views/razor) markup file (*.cshtml*) that renders HTML output *within* another markup file's rendered output. +A partial view is a [Razor](xref:mvc/views/razor) markup file (*.cshtml*) without an [`@page`](xref:mvc/views/razor#page) directive that renders HTML output *within* another markup file's rendered output. ::: moniker range=">= aspnetcore-2.1" @@ -41,7 +41,7 @@ Don't use a partial view where complex rendering logic or code execution is requ ::: moniker range=">= aspnetcore-2.0" -A partial view is a *.cshtml* markup file maintained within the *Views* folder (MVC) or *Pages* folder (Razor Pages). +A partial view is a *.cshtml* markup file without an [`@page`](xref:mvc/views/razor#page) directive maintained within the *Views* folder (MVC) or *Pages* folder (Razor Pages). In ASP.NET Core MVC, a controller's is capable of returning either a view or a partial view. In Razor Pages, a can return a partial view represented as a object. Referencing and rendering partial views is described in the [Reference a partial view](#reference-a-partial-view) section.