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>
相關文章
相關標籤/搜索