Layout

What is default layout a page when we create our new application

_layout _Layout _main
@{
   Layout = "_Layout";
}

What file we need to make changes if we want to change the layout option

_Layout.cshtml _ViewImports.cshtml _ViewStart.cshtml

Check the correct statement

There can be multiple RenderBody in layout page We can only one RenderSection in a Page There can be only one RenderBody in Index page
  • There can be only one RenderBody
  • RenderBody method is declared in layout page only

results matching ""

    No results matching ""