I have the following:
@Html.ActionLink("Register", "Register", "Users")
I would like to make the link include the following:
title="Register your ID"
rel="nofollow"
Is there a way that I can do this with MVC3?
I have the following:
@Html.ActionLink("Register", "Register", "Users")
I would like to make the link include the following:
title="Register your ID"
rel="nofollow"
Is there a way that I can do this with MVC3?
Simply use the proper overload of the
ActionLink
method:Should generate (assuming default routes setup):
The framework will parse that object and place the items as attributes in the rendered anchor.