ASP.NET MVC: generating action link with custom html in it -
how can generate action link custom html inside.
following:
<a href="http://blah-blah/.....">
<span class="icon"/> new customer
</a>
you can use urlhelper class :
<a href="<% =url.action("create","customers") %>"> <span class="icon"/> new customer </a>
the msdn link here : http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.aspx
Comments
Post a Comment