1

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")
Mr Lister
  • 45,515
  • 15
  • 108
  • 150
Lord Vermillion
  • 5,264
  • 20
  • 69
  • 109

1 Answers1

0

You can see answer the folloing link:

Putting HTML inside Html.ActionLink(), plus No Link Text?

I hope this help you.

Community
  • 1
  • 1
Omid Nasri
  • 179
  • 1
  • 10
  • 1
    Please summarize relevant information from links instead of just posting the link by itself. – Jamal Feb 22 '16 at 19:28