我有一個使用_mylayout.cshtml的剃刀file.cshtml。在我的_mylayout.cshtml文件中有幾個Action鏈接。在剃刀視圖中引用的佈局中禁用「動作鏈接」
從我的剃鬚刀file.cshtml如何禁用/隱藏_mylayout.cshtml文件中的動作鏈接?
_mylayout.cshtml
...
..
<li>@Html.ActionLink("Detail", "Edit", "DetailsFor", null, null)</li>
...
..
my file.cshtml which is using _mylayout.cshtml
...
@{
ViewBag.Title = "Details Information";
Layout = "~/Views/_mylayout.cshtml";
}
....