1 | initial version |
A partial view can be invoked from the _Layout.cshtml file using the syntax:
@Html.Partial("_PartialViewName")
where "_PartialViewName" is the name of the partial view file that you want to include in the layout.
You can also pass a model to the partial view as follows:
@Html.Partial("_PartialViewName", model)
where "model" is the data that you want to pass to the partial view.