Don't miss out Virtual Happy Hour this Friday (April 26).
Try our conversational search powered by Generative AI!
AI OnAI Off
Don't miss out Virtual Happy Hour this Friday (April 26).
You can add html attributes in the pagelink html helper like this:
@Html.PageLink(page, null, new {title = page.Name})
You can also create an Html helper that looks something like this:
public static MvcHtmlString PageLink(this HtmlHelper helper, PageData page, string title) { return helper.PageLink(page, null, new {title = title}); }
and then use:
@Html.PageLink(page, page.Name)
It it possible to add page title as part of href when rendering @Html.PageLink?
Would like to do this on all pages rendered using @Html.PageLink