I’m VERY confused as to why this code

Html.ActionLink("About", "About", "Home", new { hidefocus = "hidefocus" })

results in this link:

<a hidefocus="hidefocus" href="https://stackoverflow.com/Home/About?Length=4">About</a>

The hidefocus part is what I was aiming to achieve, but where does the ?Length=4 come from?

12 Answers
12

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *