Hey
I'm trying to create a hyperlink with a bookmark in the end, using a lambda expression in the html.ActionLink, however it does not appear to be possible.
The case I'm working with is is the following:
<%= Html.ActionLink<BlogController>(
c => c.View(entity.BlogId),
String.Format("Comments {0}",entity.Comments.Count)
)
%>
This creates the following output:
<a href="/Blog/View/1">Comments 2</a>
However, I want to change the output to the following:
<a href="/Blog/View/1#comments">Comments 2</a>
But I'm yet to find any writings or documentation on how this is possible, and the htmlAttributes overload don't appear to have a option for this.
Any input would be great, thanks.