title: Disabling "Action link" in layout which is referened in razor view
body: <p>I have a razor file.cshtml which is using a _mylayout.cshtml. In my _mylayout.cshtml file there are several Action links. </p>
  
  <p>From my razor file.cshtml how do I disable/hide an Action Link in _mylayout.cshtml file ?</p>
  
  <pre><code>_mylayout.cshtml
  ...
  ..
  &lt;li&gt;@Html.ActionLink("Detail", "Edit", "DetailsFor", null, null)&lt;/li&gt;
  ...
  ..
  
  my file.cshtml which is using _mylayout.cshtml
  ...
  @{
      ViewBag.Title = "Details Information";
      Layout = "~/Views/_mylayout.cshtml";
  }
  ....
  </code></pre>