Hello.
I'm using the ASP.Net Core MVC project with jQuery. In the view, the ViewBag.CurrentPageName is set to the current page value and the item is marked as active in the menu. But if you put the menu on a lower level, then the menu containing it does not open when the page is loaded.
At the moment I solved this problem with a small jQuery snippet, which is executed when the page loads:
Hello. I'm using the ASP.Net Core MVC project with jQuery. In the view, the
ViewBag.CurrentPageName
is set to the current page value and the item is marked as active in the menu. But if you put the menu on a lower level, then the menu containing it does not open when the page is loaded. At the moment I solved this problem with a small jQuery snippet, which is executed when the page loads:, but can there be a more elegant solution?