Here's the item from the View
@Html.EditorFor(Function(model) model.BirthDate)
Here's the code from the EditorTemplate (simplified)
@ModelType Date?
<span>
@Html.TextBox("", Model)
</span>
but the output doesn't have the span tags.
The datatype of the model.BirthDate
is Date?
The folder structure is
- Views
- Shared
- EditorTemplates
- Date.vbhtml
- EditorTemplates
- Shared
EDIT
Ok, so after some digging, I found that if I add <UIHint("Date")>
to my BuddyClass, then the template works.
So my "new" question would be... why wouldn't it pick this up by default?