views:

1620

answers:

1

I'm trying to use LinkBuilder.BuildUrlFromExpression from the Microsoft.Web.Mvc inside an ActionFilter and am wondering if this is the best way to get urls using strongly typed parameters:

LinkBuilder.BuildUrlFromExpression<HomeController>(filterContext.RequestContext, RouteTable.Routes, x => x.Login());
+1  A: 

This might help.

There is another approach using T4.

And another, using MVC Futures (might suite best).

I'm looking for the same at the moment, kind a don't want to reference Microsoft.Web.Mvc. :)
There will be this functionality in Asp.Net Mvc 2

Arnis L.