c# - @Html.DisplayFor changed to @Html.EditorFor when the Edit link is clicked for inline editing of row of data -


in default mvc project vs2013, when data displayed in table there options edit | delete | details. when edit link clicked, row of data rendered on page editing.

but i've change label textbox when @html.actionlink edit clicked i.e change @html.displayfor @html.editorfor . how can that? i trying edit the data in row without rendering page.

//<table class="table"> @foreach (var item in model)     {         <tr>             <td>                 @html.displayfor(modelitem => item.student)               </td>             <td>                 @html.displayfor(modelitem => item.course)             </td>             <td>                 @html.actionlink("edit", "edit", new { id = item.id }) |                 @html.actionlink("details", "details", new { id = item.id }) |                 @html.actionlink("delete", "delete", new { id = item.id })             </td>         </tr>     } 


Popular posts from this blog

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -