Link to home
Start Free TrialLog in
Avatar of finance_teacher
finance_teacher

asked on

Html.DisplayFor -- Hide per User Request, ASP.net MVC4

Does anyone have some ASP.net MVC4 "commandButton"
code that does something like the below step #2 ?

 1. page displays with all values below
 2. user decides they don't want to see the below
      "@Html.DisplayFor(modelItem => item.DR)"
     so they click a "HIDE/SHOW" button
 3. this field disappears, but all others remain visible
------------------------------------------------------------------------------------------------------------
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.IFSWO)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DR)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.RefDRNo)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.ProjectID)
ASKER CERTIFIED SOLUTION
Avatar of Jeroen Timmermans
Jeroen Timmermans
Flag of Netherlands image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial