RenderBody
RenderBody is a Razor layout method that renders a child view’s unassigned body content at the method’s location.
ASP.NET Core in Action, 3e
RenderBody is the Razor layout method that renders the body content supplied by a child view at its invocation location.
- How it is used
- Places child-view content inside shared Razor layout markup.
- How deep it goes
- Explains the insertion mechanic, layout requirement, rendered result, and alternatives through sections and nested layouts.
- Examples
- Uses a basic _Layout.cshtml, a home view, rendered HTML, and a two-column layout with a sidebar section.
- What you can do after
- Apply it via Razor layouts to combine shared page structure with view-specific content.
Pro ASP.NET Core 7, Tenth Edition
RenderBody is a Razor layout method that inserts a view's content not assigned to a section into the rendered response.
- How it is used
- Places view-specific Razor output inside a shared layout during response rendering.
- How deep it goes
- Explains inheritance, layout selection, and section boundaries, but does not descend into Razor rendering internals.
- Examples
- Uses _Layout.cshtml with shared HTML, a Product view, and table content inserted through RenderBody.
- What you can do after
- Builds a shared Razor layout that renders unsectioned view content at a chosen location.
Read how Pro ASP.NET Core 7, Tenth Edition explains RenderBody →
Related concepts
- layoutused by · A layout is the arrangement and positioning of content or interface elements within a page, screen, or other visual area.
- Razor layoutused by · A Razor layout is a reusable template that defines shared page structure around the content of individual Razor views.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

