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(modelIte m => 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)
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(modelIte
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
</td>
<td>
@Html.DisplayFor(modelItem
</td>
<td>
@Html.DisplayFor(modelItem
</td>
<td>
@Html.DisplayFor(modelItem
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.