Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
148
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. @using StudentCatalog.Models
  2. @model IEnumerable<StudentCatalog.Models.Student>
  3.  
  4. @{
  5. ViewBag.Title = "Index";
  6. }
  7.  
  8. <h2>Index</h2>
  9.  
  10. <p>
  11. @Html.ActionLink("Create New", "Create")
  12. </p>
  13. <div class="col-md-3 hidden-xs">LALALA</div>
  14. <div class="col-md-9">
  15. @foreach (Student item in Model)
  16. {
  17. <div class="col-md-3">
  18. @Html
  19.  
  20.  
  21. @Html.DisplayFor(modelItem => item.Firstname)
  22.  
  23. @Html.DisplayFor(modelItem => item.Lastname)
  24.  
  25. @Html.DisplayFor(modelItem => item.Email)
  26.  
  27. @Html.DisplayFor(modelItem => item.MobilePhone)
  28.  
  29. @Html.ActionLink("Edit", "Edit", new { id = item.StudentId })
  30. @Html.ActionLink("Details", "Details", new { id = item.StudentId })
  31. @Html.ActionLink("Delete", "Delete", new { id = item.StudentId })
  32. </div>
  33. }
  34.  
  35. </div>
  36.  
  37. <table class="table">
  38. <tr>
  39. <th>
  40. @Html.DisplayNameFor(model => model.Firstname)
  41. </th>
  42. <th>
  43. @Html.DisplayNameFor(model => model.Lastname)
  44. </th>
  45. <th>
  46. @Html.DisplayNameFor(model => model.Email)
  47. </th>
  48. <th>
  49. @Html.DisplayNameFor(model => model.MobilePhone)
  50. </th>
  51. <th></th>
  52. </tr>
  53.  
  54.  
  55.  
  56. </table>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement