Creating a MVC layout page
The last step in creating a Bootstrap 4 enabled ASP.NET MVC project is to create a master layout page that will reference the Bootstrap CSS and JavaScript files. To create the layout page, complete the following steps:
- Add a new file called - _Layout.cshtmlto the- Views\Sharedfolder.
- Add the following HTML to the file: - <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0" /> <title>My Bootstrap Site</title> <link rel="stylesheet" href="~/css/bootstrap.css" /> </head> <body> <div class="container body-content"> @RenderBody() <hr /> <footer> <p>... 
 
                                             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
             
     
         
                 
                 
                 
                 
                 
                 
                 
                 
                