Friday, April 15, 2011

How do I get static expression ActionLinks etc in ASP.NET MVC 1?

I've read loads of examples in which

<li><%= Html.ActionLink("Home", "Index", "Home")%></li>

is rewritten as

<li><%= Html.ActionLink<HomeController>(c => c.Index(), "Index")%></li>

However, with a fresh ASP MVC project, this doesn't compile. I've read its something to do with needing to add the ASP MVC Futures assembly. Is this correct and if so, where do I get it?

From stackoverflow

0 comments:

Post a Comment