Create an ActionLink with HTML elements in the link text

You could use Url.Action to build the link for you:

<a href="https://stackoverflow.com/questions/402605/<% =Url.Action("Action", "Controller")%>">link text <span>with further blablah</span></a>

or use Html.BuildUrlFromExpression:

<a href="https://stackoverflow.com/questions/402605/<% =Html.BuildUrlFromExpression<Controller>(c => c.Action()) %>">text <span>text</span></a>

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)