Different navbars on pages

Frequent Visitor

Hello,
I have a Blazor Server application where my navbar (TopMenu) is added to MainLayout.razor.

 

@inherits LayoutComponentBase

<PageTitle>My Site</PageTitle>

<div class="page">
    <TopMenu />
    ...
</div>

 

 Now I have one page where I want to have a different navbar. Lets say "TopMenu2".

How can I do this?

1 Reply

Hi @Phrone,

Thanks for posting your issue here.

However this platform is used for how-to discussions and sharing best practices for building any app with .NET.Since your issue is a technical question, welcome to post it in Microsoft Q&A forum, the support team and communities on Microsoft Q&A will help you for any technical questions.
Besides, it will be appreciated if you can share it here once you post this technical question Microsoft Q&A.
Best Regards,
Lan Huang