This one goes out to all you who are spending valuable time to figure out where the heck you can find these methods:

ActionLink and BuildUrlFromExpression you can find in the MVC Futures:

<%@ Import Namespace="Microsoft.Web.Mvc"%>  
<% =Html.ActionLink<HomeController>(x => x.Index(),"Go home") %> 
<% =Html.BuildUrlFromExpression<HomeController>(x=>x.Index())%> 

Strongly typed RedirectToAction you can find in MvcContrib

using MvcContrib; 
return this.RedirectToAction(x=>x.Index());

You can also read Phil Haacks uber lame exuse for not putting this inside MVC at the end of this post

Comments F Share