Thanks for reading this.
In the _Layout.cshtml page I use the @RenderPage to call the header:
@RenderPage("/Shared/_header.cshtml")
It has this:
<div id="Header"> Home </div>
Want to make it clickable to the default action ("Index")
When I tried this:
<div id="Header"> @Html.Action("Index", "MyController") </div>
The 'Action' is underlined in red with this error:
'System.Web.WebPages.Html.HtmlHelper' does not contain a defintion for 'Action' and no extension ......
"System.Web.Mvc" is referenced in the project as well in the config file:
<add namespace="System.Web.Mvc" />
Any ideas?