Hide or Disable MVC3 ActionLinks depending on cell value
问题 MVC3 has created the following table for me @foreach (var item in Model) { <tr> <td> @Html.DisplayFor(modelItem => item.Author) </td> <td> @Html.DisplayFor(modelItem => item.Comment) </td> <td> @Html.ActionLink("Edit", "Edit", new { id=item.UserCommentID }) | @Html.ActionLink("Details", "Details", new { id=item.UserCommentID }) | @Html.ActionLink("Delete", "Delete", new { id=item.UserCommentID }) </td> </tr> } I am sure everyone has seen this sort of thing a million times before. Does anyone