The ASP.NET Core Menu Bar is a graphical user interface control that serves as a navigation header for your web application or site. It supports data binding, templates, icons, multilevel nesting, and horizontal and vertical menus.

What is Navigation Menus in ASP.NET Core?. The Complete ASP.NET Core Developer Course 2023 [Videos].
Navigation-Menus in ASP.NET Core Application
In this Video, I am going to discuss how to create Responsive Navigation Menus in ASP.NET Core Application using bootstrap and JQuery. Please read our previous Video, where we discussed the Application.
On a large screen device, we want the navigation menus to look as shown below.
On a small screen device, we want to show the navigation menus like below.
Adding bootstrap and JQuery files:
The most important point that you need to remember is Bootstrap 4 has a dependency on jQuery. So, here we need to download both bootstraps as well as JQuery into our application. Here, we are going to use a tool called Library Manager (LibMan) to download the required bootstrap and JQuery files. If you are new to Library Manager then I strongly recommended you to read the following Video where we discussed how to use LibMan to download client-side libraries.
Adding images Folder:
Add a folder called images with the wwwroot folder and then paste two different images with the name Logo.png and Student.png.
Adding css Folder:
Again add a folder with the name css within the wwwroot folder and then add a css file with the name MyCustomStyleSheet.css. Once you create the css file, then copy and paste the following code in it.
With the above files and folders in place, your wwwroot folder should looks as shown below.
_ViewImports.cshtml file:
Please modify the _ViewImports.cshtml file as shown below.
_Layout.cshtml file:
Please modify the _Layout.cshtml file as shown below.
Note: On a small screen device, for the navbar toggle button to work, the jQuery reference must be loaded before loading the Bootstrap JavaScript file. If you change the order, then the navbar toggle button does not work as expected.
Creating Models:
First, we need to create two enums to store the Gender and Branch of a student. So, create two models within the Models folder with the name Gender and Branch and then copy and paste the following code.
Branch.cs
Gender.cs
Please add the following Student model with the Models folder.
Student.cs
Modifying the Home Controller:
Please modify the Home Controller as shown below.
Index.cshtml file:
Please modify the Index view as shown below.
Detail.cshtml file:
Please modify the Details view as shown below.
Now run the application and see the navigation menus which should be responsive.