Example:
I have a web page http://www.test.com/ and then if I click a link, e.g. <a href="#test"> then the page will jump to wherever the element with ID ‘test’. Is it possible to implement the same thing within an Html.ActionLink(). Obviously, I could keep the same format, but when navigating between pages with a #id I need it to work too.
So I’m looking for something where I can put Html.ActionLink("Text", "Action", "Controller", "id")
You have to use the fragment parameter:
http://msdn.microsoft.com/en-us/library/dd460522.aspx