2010-10-07 17 views

Odpowiedz

8

Można użyć klasy UrlHelper:

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

Link MSDN jest tutaj: http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.aspx

+0

O, to jest dużo oczywiste, że myślałem :) Dzięki! –

+0

BTW, znalazłem przydatne informacje tutaj: http://stephenwalther.com/blog/archive/2009/03/03/chapter-6-understanding-html-helpers.aspx i tutaj http://iridescence.no /post/Rendering-Action-Links-in-ASPNET-MVC-Applications.aspx –

Powiązane problemy