Add New page:
Base View
Theme base view is Views/Shared/Layout.cshtml
,
in
this file we
are connecting all global styles and scripts. Each layout
template should be wrapped with this view.
Content will be rendered in the place of
@RenderBody()
.
Note
The Shared folder contains views, layout views, and partial views, which will be shared among multiple controllers.
Specifying a Layout
Razor views have a Layout property. Individual views specify a layout by setting this property.
@{
Layout = "~/Views/Shared/Layout.cshtml";
}