I searched the Internet for an answer and tried Brad Wilson to offer a solution here: Including an anchor tag in ASP.NET MVC Html.ActionLink
However, this does not work for me.
Here is what I did:
In the Controller / Details / _PartialView file, I put the anchor tag:
<a name="anchor-point"></a>
The _PartialView file is obviously rendered when rendering Controller / Details.
In the controller / index, I have an ActionLink as follows
<td>@Html.ActionLink("linkText", "Details", "Controller", null, null, "anchor-point", new { item => item.ID }, null)</td>
When I check the displayed HTML in Chrome, the link above is not what I would like:
../Controller/Details/id#anchor-point
I misunderstood something or changed usage from the moment of publication. I am using MVC 5 ASP.NET 4.5.
Relations Craig
source share