I am using Asp.net MVC. In the layout page I want to store footer in a file and call it using RenderPage. It looks that everything is OK but when I run the website I get this error:
this is the file tree for project _Footer.cshtml is located in Shared Folder
content for _Footer.cshtml
<div id="copyrights">
<div class="container clearfix">
<div class="col_half">
</div>
</div>
</div><!-- #copyrights end -->
In ASP.NET MVC you can use
@Html.Partial("_Footer")
or @{Html.RenderPartial("_Footer");}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With