Skip to content

Commit 8c4f7a4

Browse files
authored
Enhance partial page description (#19975)
1 parent bef0ac9 commit 8c4f7a4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

aspnetcore/mvc/views/partial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ uid: mvc/views/partial
1212

1313
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)
1414

15-
A partial view is a [Razor](xref:mvc/views/razor) markup file (*.cshtml*) that renders HTML output *within* another markup file's rendered output.
15+
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.
1616

1717
::: moniker range=">= aspnetcore-2.1"
1818

@@ -41,7 +41,7 @@ Don't use a partial view where complex rendering logic or code execution is requ
4141

4242
::: moniker range=">= aspnetcore-2.0"
4343

44-
A partial view is a *.cshtml* markup file maintained within the *Views* folder (MVC) or *Pages* folder (Razor Pages).
44+
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).
4545

4646
In ASP.NET Core MVC, a controller's <xref:Microsoft.AspNetCore.Mvc.ViewResult> is capable of returning either a view or a partial view. In Razor Pages, a <xref:Microsoft.AspNetCore.Mvc.RazorPages.PageModel> can return a partial view represented as a <xref:Microsoft.AspNetCore.Mvc.PartialViewResult> object. Referencing and rendering partial views is described in the [Reference a partial view](#reference-a-partial-view) section.
4747

0 commit comments

Comments
 (0)