2010-10-07 33 views

回答

8

可以使用UrlHelper類:

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

的MSDN鏈接是在這裏:http://msdn.microsoft.com/en-us/library/system.web.mvc.urlhelper.aspx

+0

O,這是很明顯的,我認爲:)謝謝! – 2010-10-07 08:20:18

+0

BTW,我發現一些有用的信息在這裏:http://stephenwalther.com/blog/archive/2009/03/03/chapter-6-understanding-html-helpers.aspx這裏http://iridescence.no /post/Rendering-Action-Links-in-ASPNET-MVC-Applications.aspx – 2010-10-07 22:42:22

相關問題