0 votes
in C Sharp by

What is Partial View in MVC?

1 Answer

0 votes
by

A partial view is a chunk of HTML that can be safely inserted into an existing DOM. Most commonly, partial views are used to componentize Razor views and make them easier to build and update. Partial views can also be returned directly from controller methods. In this case, the browser still receives text/HTML content but not necessarily HTML content that makes up an entire page. As a result, if a URL that returns a partial view is directly invoked from the address bar of a browser, an incomplete page may be displayed. This may be something like a page that misses title, script and style sheets.

Related questions

0 votes
asked Jan 20, 2020 in C Sharp by AdilsonLima
0 votes
asked Oct 18, 2019 in C Sharp by Robin
...