2016-01-11 1 views
0

Comment puis-je inclure des entités html dans ActionLink? par exemple. Le cas de » ci-dessous.Entité html dans ActionLink

<p>@Html.ActionLink("Link Text &raquo;", "Index", new { }, new { @class = "btn btn-warning", @role = "button" })</p> 

Répondre

2

Utilisez Url.Action à la place

<p><a [email protected]("Index") role="button"><span class="btn btn-warning">Link Text &raquo;</span></a></p>