1

I am trying:

<%= Html.ActionLink("Link Label", "Index", "controller_name", new { area = "AreaName" }, new { @id = "documentation" })%>

To create the appropriate html to send the user to the "documentation" part of the web page by rendering the id into the title (i.e. ) and then dropping the "#documentation" onto the end of the url like so:

http://localhost/AreaName/controller_name/#documentation

when I type the url by hand the mvc routing sends the browser to the section ok, all I need is a way to make the Actionlink render the html correctly.

Any ideas?

skaffman
  • 398,947
  • 96
  • 818
  • 769
Paul Connolly
  • 319
  • 2
  • 15

1 Answers1

1

Here is your solution, already solved:

Including an anchor tag in an ASP.NET MVC Html.ActionLink

Community
  • 1
  • 1
Dustin Laine
  • 37,935
  • 10
  • 86
  • 125