I am trying to create a link with Url.Action that ends with #something ; I suppose there is something in the route values ββto do it right, but I could not find it with Google.
So far I have tried Url.Action("action", "controller", new {id="something", Area="area"}) . The resulting link is the expected / action / controller / area, but in the end I cannot commit #something.
Url-wise, I could probably get away from the word <a href="<%= Url.Action(..) %>#something"> , but that doesn't seem to me particularly pleasant; I am looking for the best solution.
source share