Including a dynamic menu to the Layout page...

Curious Cat 21 Reputation points
2022-10-05T07:05:47.69+00:00

Hello,

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.

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