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.