Asp.net mvc 如何添加rel=";不知道我的ActionLink在哪里?

Asp.net mvc 如何添加rel=";不知道我的ActionLink在哪里?,asp.net-mvc,asp.net-mvc-3,razor,Asp.net Mvc,Asp.net Mvc 3,Razor,我有以下资料: @Html.ActionLink("Register", "Register", "Users") title="Register your ID" rel="nofollow" 我希望链接包括以下内容: @Html.ActionLink("Register", "Register", "Users") title="Register your ID" rel="nofollow" 有没有一种方法可以通过MVC3实现这一点?只需使用适当的方法重载即可: 应生成(假设默

我有以下资料:

@Html.ActionLink("Register", "Register", "Users")
title="Register your ID" 
rel="nofollow"
我希望链接包括以下内容:

@Html.ActionLink("Register", "Register", "Users")
title="Register your ID" 
rel="nofollow"

有没有一种方法可以通过MVC3实现这一点?

只需使用适当的方法重载即可:

应生成(假设默认路由设置):


只需使用适当的方法重载即可:

应生成(假设默认路由设置):


框架将解析该对象,并将项目作为属性放置在呈现的锚中


框架将解析该对象,并将项目作为属性放置在呈现的锚定中。

如果不想使用动作链接,您也可以这样做:如果不想使用动作链接,您也可以这样做:
@Html.ActionLink("Register", "Register", "Users", null,
    new {title = "Register your ID", rel="nofollow")