Hello I am getting this error when loading my navigation script. Error loading Partial View script. Bellow is the script I an using. I do think it has something to do with using NodeByID but I am not sure and did not build the site original. I have copied the site from a very old umbraco version to a new version with win host and this seem to be my only hang up any help is appreciated.
Thanks,
Tommy
@{
var HowWeHelpNode = Model.NodeById(1137);
}
<div class="grid_3 alpha equalColumn">
<div class="side-nav">
<ul>
@if(Model.Id == 1137)
{
<li class="active"><a href="/how-we-help.aspx">How We Help</a></li>
}
else
{
<li><a href="/how-we-help.aspx">How We Help</a></li>
}
@foreach(var child in HowWeHelpNode.Children){
if(Model.Id == child.Id)
{
<li class="active"><a href="@child.Url">@child.Name</a></li>
}
else
{
<li><a href="@child.Url">@child.Name</a></li>
}
}
</ul>
</div>
<!-- /grid_3 --></div>
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/73402-error-loading-partial-view-script