Search code examples
asp.net-mvcasp.net-mvc-3razorhtml.actionlink

ASP MVC3 insert html tag inside actionlink


I'm new to the ASP MVC3 and I'm using Razor Engine.

My broplem is that I've build my main navigation in form

<nav> <ul> <li><a href=""><b>Link</b></a></li></ul></nav>

So how I can do this with the actionlink? I just need to insert b tag inside a tag.


Solution

  • Use @Url.Action() to get href value instead of @Html.ActionLink