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

silverlight - Applying a style to ItemContainerStyle in C# -

c# - NullReferenceException in MySqlClient.NativeDriver -

php - Updating recent updates - Problem in procedure - Any other approach? -