Tag Archives: html.editorfor

Html.EditorFor, Model Property vs RouteData Value

By | May 13, 2012

The ASP.NET MVC team made our lives easier when they created the Html editor extension method Html.EditoFor(); you just pass the model property and it creates the right editor, filling it with the property’s value…but not always! Let’s consider that we have the conventional route definition: routes.MapRoute( "Default", // Route name "{controller}/{action}/{id}", // URL with… Read More »