Returning a Partial View from an Action

Move the part of the page that changes into a partial view, render it on the full page with the partial tag helper, and add an action that returns just that partial with PartialView, so a request gets only its HTML, without the layout.

Updated

Cheat sheet: Returning a Partial View from an Action
Category
ASP.NET Core
Level
Journeyman
Tags
aspnet-core, PartialView(), razor