How can I generate action link with custom html inside.
Like following:
<a href="http://blah-blah/.....">
<span class="icon"/>
New customer
</a>
2 Answers
You can use the UrlHelper class :
<a href="<% =Url.Action("Create","Customers") %>">
<span class="icon"/> New customer
</a>
The MSDN link is here : http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.aspx
2 Comments
alex.b
o, it is much obvious, that I thought :) Thanks!
alex.b
BTW, I've found some helpful info here: stephenwalther.com/blog/archive/2009/03/03/… and here iridescence.no/post/…