ASP.NET MVC 2 – Linking between Areas

If you’ve been playing with MVC 2 you might be wondering how to make ActionLinks between areas. I know it took me a good half hour to figure out!

Here it is:

Html.ActionLink("Display Text", "Action", "Controller", new { area = "Area" }, null);

I hope it helps someone!

This entry was posted on Thursday, June 10th, 2010 at 11:02 am and is filed under ASP.NET, C#.NET, MVC. You can follow any responses to this entry through the RSS 2.0 feed. You can skip to the end and leave a response. Pinging is currently not allowed.

Leave a Reply