Cheat Sheet - Section 10 - Asp - Net Core
Cheat Sheet - Section 10 - Asp - Net Core
Partial Views
Partial view is a razor markup file (.cshtml) that can't be invoked individually from the controller; but
can be invoked from any view within the same web application.
When partial view is invoked, it receives a copy of the parent view's ViewData object.
So, any changes made in the ViewData in the partial view, do NOT effect the ViewData of the parent
view.
Optionally, you can supply a custom ViewData object to the partial view, if you don't want the partial
view to access the entire ViewData of the parent view.
Invoking Partial Views with View Data
-- or --
Strongly Typed Partial View is a partial view that is bound to a specified model class.
-- or --
Generally useful to fetch partial view's content into the browser, by making an asynchronous
request (XMLHttpRequest / fetch request) from the browser.
[or]