What is Partial View?

A partial view is a Razor markup file ( .cshtml ) without a @page directive that renders HTML output within another markup file's rendered output. The term partial view is used when developing either an MVC app, where markup files are called views, or a Razor Pages app, where markup files are called pages.

 

A partial view is a reusable view component that can be rendered within other views or shared across multiple pages in a web application.

It helps us to reduce code duplication.

 


 

Post a Comment

Previous Post Next Post