I would like to add a <span>
tag to a Razor ActionLink. With regular HTML it looks like:
<a href="#">Test <span class="badge">1</span></a>
How can I add the span tag to a razor ActionLink like this:
@Html.ActionLink("Test", "Test", "Home")
I would like to add a <span>
tag to a Razor ActionLink. With regular HTML it looks like:
<a href="#">Test <span class="badge">1</span></a>
How can I add the span tag to a razor ActionLink like this:
@Html.ActionLink("Test", "Test", "Home")
You can see answer the folloing link:
Putting HTML inside Html.ActionLink(), plus No Link Text?
I hope this help you.