I\'m working on setting up a shared content (navigation) for an asp.net MVC layout page.
Here is my partial view \"_LayoutPartial.cshtml\" with code to pull navigati
First verify that your child view is inside the Shared directory
Shared
@Html.Partial("_LayoutPartial")
OR
@{Html.RenderAction("actionname", "controller name");}
And don't use @Html.Encode(), Razor is already doing for u. Just use
@Html.Encode()
@item.Name @item.URL