Alex Rivera | Logout

What's the difference between RouteLink and ActionLink in ASP.NET MVC?

Asked 2009-05-14T18:03:54.737
122

I think that the title pretty much sums it up:

What's the difference between RouteLink() and ActionLink() in ASP.NET MVC?

i.e. when do you use Html.RouteLink() and when do you use Html.ActionLink() in your View?

Edit
Report

1 Answer

19

In addition to the other answers given here, RouteLink is a little bit faster, and cannot ever match the wrong route because you changed your routing table.

answered 2009-05-14T18:45:02.923

Your Answer