2010-10-07 5 views

risposta

8

È possibile utilizzare la classe UrlHelper:

<a href="<% =Url.Action("Create","Customers") %>"> 
    <span class="icon"/> New customer 
</a> 

Il legame MSDN è qui: http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.aspx

+0

o, è molto evidente, che ho pensato :) Grazie! –

+0

BTW, ho trovato alcune informazioni utili qui: http://stephenwalther.com/blog/archive/2009/03/03/chapter-6-understanding-html-helpers.aspx e qui http://iridescence.no /post/Rendering-Action-Links-in-ASPNET-MVC-Applications.aspx –

Problemi correlati