1. 程式人生 > >Html.ActionLink多引數寫法

Html.ActionLink多引數寫法

@Html.ActionLink("刪除此檔案","Action","Controller",new {Id=Id ,area="Admin" },new {@class = "btn btn-danger btn-sm" })

//生成結果:
<a class="btn btn-danger btn-sm" href="/Admin/Controller/Action/2">刪除此檔案</a>