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

Popular posts from this blog

ASP.NET/SQL find the element ID and update database -

jquery - appear modal windows bottom -

c++ - Compiling static TagLib 1.6.3 libraries for Windows -