Skip to content

RazorComponentResult<T> doesn't render either the Blazor or MVC Layout #31393

@nfplee

Description

@nfplee

Description

The section Return a RazorComponentResult from an MVC controller action suggests that a Layout will be applied to the Razor component, but I can't get it to work. It simply renders the content of Welcome.razor.

Page URL

https://learn.microsoft.com/en-us/aspnet/core/blazor/components/integration?view=aspnetcore-8.0

Content source URL

https://github.com/dotnet/AspNetCore.Docs/blob/main/aspnetcore/blazor/components/integration.md

Document ID

d7e39bbc-cd54-92aa-4997-f9dd39dd6ef3

Article author

@guardrex

Metadata

Metadata

Assignees

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions