如何在mvc核心链接中创建数据-...

时间:2017-10-08 21:18:34

标签: asp.net-mvc asp.net-core-mvc asp.net-core-tag-helpers

我使用this method来显示MVC Core中的模态。在此示例中,当用户单击编辑链接部分视图显示为模态时,

reloadData()

现在在新的mvc我们没有data_modal,我怎么能在我的链接上添加这个 我在mvc 6中的正常标签链接就像这样

<div class="pull-right">
@Html.NoEncodeActionLink("<span class='glyphicon glyphicon-pencil'></span>", "Edit", "Edit", "People", routeValues: new { id = item.Id }, htmlAttributes: new { data_modal = "", @class = "btn btn-default" })
&nbsp;
@Html.NoEncodeActionLink("<span class='glyphicon glyphicon-search'></span>", "Details", "Details", "People", routeValues: new { id = item.Id }, htmlAttributes: new { data_modal = "", @class = "btn btn-default" })
&nbsp;
@Html.NoEncodeActionLink("<span class='glyphicon glyphicon-trash'></span>", "Delete", "Delete", "People", routeValues: new { id = item.Id }, htmlAttributes: new { data_modal = "", @class = "btn btn-danger" })

0 个答案:

没有答案