MVC5 Html.EditorForModel not working Properly: NOT showing any string data

276 views Asked by At
Output is showing like: (Only the employee IDs are showing)

1001110012100141001510016;

CODE

Editor Template (Location Views\Shared\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

There are 1 answers

2
Steve Harris On

Looks like it's not finding the template. The folder should be EditorTemplates (with an s on the end)