I was asked to add a corporate header and footer in a webpage that I'm building. The design team gave me two links, one with the header and the another with the footer.
What I did was to open that link a then copy from the inspector the whole code, added in a _header.cshtml and _footer.cshtml. Then I included them as a partial view in the _layout.cshtml. I'm using ASP.net with MVC4.
This team made some changes in the header and footer and they told me that they could not see those changes in my page.
Could anyone please guide me and let me know what I have to do in order to have the header and footer working dynamical from those links that I received.
This is my code:
<body>
<header>
<div>
@Html.Partial("_Header")
<!--#include virtual="/header.html"-->
</div>
</header>
<div id="body">
<section class="content-wrapper main-content clear-fix">
@RenderBody()
</section>
</div>
<footer>
<div>
@Html.Partial("_Footer")
<!--#include virtual="/footer.html"-->
</div>
</footer>
@RenderSection("scripts", required: false)
</body>
The links look like this one. http://webapps.corporate.com/templates/corporate/contact/header.html
Any help will be much appreciated.