【发布时间】:2010-07-11 02:51:03
【问题描述】:
我有一个像这样的 MVC ActionLink(效果很好)
<%: Html.ActionLink(user.UserName, "Details", "Users", New With{.id = user.ID, .slug = Replace(user.UserName," ","-")}, nothing)%>
但由于不“推荐”在视图中进行字符串操作,我想知道如何构建自定义 Html ActionLink 来为我进行字符串替换?
【问题讨论】:
标签: asp.net-mvc-2 html-helper partial-views actionlink