DalSoft / dalsoft-website-comments

0 stars 0 forks source link

blog/index.php/2010/11/asp-net-mvc-expression-based-urlhelper-extension/ #16

Open utterances-bot opened 1 month ago

utterances-bot commented 1 month ago

ASP.NET MVC - Expression Based UrlHelper Extension | DalSoft Ltd

A post about the expression based UrlHelper in the MVC 2 Futures release

https://www.dalsoft.co.uk/blog/index.php/2010/11/asp-net-mvc-expression-based-urlhelper-extension/

DalSoft commented 1 month ago

Legacy Comments

Paul Blamire says: December 1, 2010 at 6:43 pm Hi there,

In case you haven’t seen it then It sounds like you may be interested in David Ebbo’s T4MVC as it solves the same problem you do.

http://mvccontrib.codeplex.com/wikipage?title=T4MVC_doc&referringTitle=T4MVC

Kind regards,

Paul


DalSoft says: December 1, 2010 at 7:33 pm Thanks Paul, I hadn’t looked at T4MVC before and it looks great. I really like the strongly typed helper for links to content files, that would of solved some problems I have seen recently with hardcoded strings in views.


John Gavin says: February 18, 2011 at 7:28 pm DalSoft one advantage of your code is that it is fluent Url.ActionFor(controller => controller.MyAction()) rather than Url.ActionFor(Controller.MyAction()) when using T4MVC.

The fluent way feels more natural as all the helpers work this way.