Good night, M. Career,
The archive _Layout.cshtml , is where the default Layout for your views is. When you create a project in Visual Studio of the Asp.Net MVC type, it automatically creates that file. It contains the navigation bar that is at the top of the page, with a few links like, Home, About and Contact footer as well.
So that all your Views inherit this layout contained in _Layout.cshtml automatically, you should check if the file Viewstart.cshtml ( inside the Views folder of your project) is like this:
@{
Layout = "~/Views/Shared/_Layout.cshtml";
}
If so, anything on_Layout.cshtml will be applied to all your views, no need for you to repeat code page by page;.
If you want to change the footer or the top menu, just change the file _Layout.cshtml that all modifications will be applied to all your Views, including your contact page.
If you have any difficulties, talk to me :D
I already know that dear colleague! But as I said, my contact page contains a form, so it is a Web Form and not a View. If I was a View I wouldn’t be asking this question :)
– M.Carreira