Including a dynamic menu to the Layout page...

Curious Cat 21 Reputation points


I have a problem and couldn't find a solution.

I am developing a site in Visual Studio 2022, ASP.NET Core 6.0 Razor pages. (not MVC)

I made a database drived (MSSQL) dynamic menu for the navigation. I made this menu in a temp page and it works without any problem. Problem starts, when i want to include this menu in the navbar at the Layout page.

"partial page" doesn't seems like a solution to me, any suggestion or samples how i could make this ?
Thank you in advance.

A set of technologies in the .NET Framework for building web applications and XML web services.
4,226 questions
{count} votes