what is the correct way to use bootstrap button with thw Url. Action.
@Url.Action("Delete", "Delete", null, new { id = item.Id }),new { @class = "btn btn-success btn-xs" })
Thanks
Actually I think you're using the wrong helper. What you want probably is ActionLink
@Html.ActionLink("Delete", "your action", "your controller", new { id = item.Id },new { @class = "btn btn-success btn-xs" })
if you still want to use Url.Action, just use like this
<a href="@Url.Action("your action", "your controller", new { id = item.Id }" class="btn btn-success btn-xs">Delete</a>
new keyword is wrong and must be removed in order to make the code work.
bootstrap.css