The primary method used in a Razor Layout to render content from a child view is _______.

  • @RenderBody()
  • @RenderSection()
  • @RenderPage()
  • @RenderPartial()
The primary method used in a Razor Layout to render content from a child view is "@RenderBody()". This directive is used to render the main content of the child view within the layout.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *