Not having been introduced to the structure of the shared directory (it doesn't seem to be mentioned in the http://www.asp.net/learn/mvc/ pages) there was an issue with understanding how the Html.EditorFor method would provide my custom editor.
This was solved when I came across David Hayden's blog page:
And so I discovered that the control should be placed in the /Shared/EditorTemplates directory. Low and behold, the code you can find on this page worked:
No comments:
Post a Comment