I have one Partial View as follows
_MyNav.cshtml
<ul>
<li>
@Html.ActionLink("Link1", "Index", "Link",new { id="" }, null)
</li>
<li>
@Html.ActionLink("Link2", "Index", " Link ",new { id="1" }, null)
</li>
<li>
@Html.ActionLink("Link3", "Index", " Link ",new { id="2" }, null)
</li>
</ul>
I included the partial view in two places in my main layout file. @Html.Partial("_MyNav"). One of the partial views needs to have all the links the other one needs to have two links.
Is there anyway that I would be able to hide one of the links in _MyNav by passing the parameter?