News:
In the site's master page, create a div element with an ID of Navigation. Add the following code segment inside this div element.
<% Html.RenderPartial("~/Views/Shared/MenuBar.ascx"); %>
In the site's master page, create a div element with an ID of Navigation. Add the following code segment inside this div element.
<%= Url.Content("~/Views/Shared/MenuBar.ascx") %>
In each of the controller's action methods, add an entry to the ViewData collection with a key of Navigation and a value of ~/Views/Shared/MenuBar.ascx
In the site's Global.asax.cs file, register a route named Navigation that points to the ~/Views/Shared/ MenuBar.ascx file.