MVC5 Html.EditorForModel无法正常工作:不显示任何字符串数据

时间:2015-12-27 03:19:23

标签: html model-view-controller editorformodel

Output is showing like: (Only the employee IDs are showing)

1001110012100141001510016;

CODE

编辑模板(位置视图\共享\ EditorTemplate \ Employee.cshtml

@model MultiRowDEL.Models.Employee
   <tr>
    <td>
        <input type="checkbox" name="empIdsToDel" id="empIdsToDel" value="@Model.EmployeeID" />
    </td>
    <td>
        @Model.Name
    </td>
    <td>
        @Model.Gender
    </td>
    <td>
        @Model.City 
    </td>
</tr>

1 个答案:

答案 0 :(得分:0)

看起来它没有找到模板。该文件夹应该是EditorTemplates(最后带有s)