让我说:
@Html.EditorFor(i => i.Date)
......和我有一个固定日期项目的模板。 在我的模板中,我有......
<input type="text" name="???" />
Given that the template only receives a DateTime instance, how can one have the template dynamically generate the name of the form field based on the original Model property name being assigned to the template?
Otherwise, upon post back, the model binder won t be able to match up the value from the template with the Date property assigned to it!
Cheers, Ian。