I want to put a button as the text of an @ActionLink()
but I can't because it HTML-escapes my string... I found the @Html.Raw()
mechanism and have tried the @ActionLink().ToHtmlString()
but can't figure out how to put it together...
I found an article that describes building an extension for a similar purpose but it's eeky to go to that much trouble... there must be an easy way?
If you want to create a custom action link that uses T4MVC library, You can write the below code:
You could write a helper:
and then use this helper:
which given default routes would produce: