I'm having trouble adding a validationmessage to my custom editortemplate, this is the line I am using (I've tried posting the entire template code but having no luck)
<%= Html.ValidationMessage(ViewData.ModelMetadata.PropertyName) %>
If I put the validationmessage for the model property outside of the template it works fine so I know the modelerror exists.
Any ideas?