Html.EditorFor, Html.DisplayFor not working on MVC1.0 -> MVC2.0 manual migration

Posted by lawrence-chase on Stack Overflow See other posts from Stack Overflow or by lawrence-chase
Published on 2010-03-14T21:33:37Z Indexed on 2010/03/14 21:35 UTC
Read the original article Hit count: 1265

Filed under:

Has anyone encountered this problem? I manually migrated a MVC1.0 application to MVC2.0 and everything so far seems to be working fine. Today I wanted to try out the Html.EditorFor helper and it doesn't render the template. I set it up the same way in a fresh MVC2.0 application and the template does render. Is there anything other (or specifically needed when mirgrating to activate this behavior) than throwing the partial view like DateTime.ascx into Views/Shared/EditorTemplates and using the helper methods to render the model objects? I'm stumped.

© Stack Overflow or respective owner

Related posts about asp.net-mvc