6
我能在裏面自定義HTML動作鏈接。
像以下:
<a href="http://blah-blah/.....">
ASP.NET MVC:使用自定義HTML生成跳轉鏈接在它
<span class="icon"/> New customer
</a>
我能在裏面自定義HTML動作鏈接。
像以下:
<a href="http://blah-blah/.....">
ASP.NET MVC:使用自定義HTML生成跳轉鏈接在它
<span class="icon"/> New customer
</a>
可以使用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
O,這是很明顯的,我認爲:)謝謝! – 2010-10-07 08:20:18
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