Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
134
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.95 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-lg-2 col-md-3 col-sm-12 hidden-xs">LALALA</div>
  14. <div class="col-lg-10 col-md-9 col-sm-12">
  15. @foreach (Student student in Model)
  16. {
  17. <div class="col-lg-2 col-md-3 col-sm-3 col-xs-6">
  18. <a href="@Url.Action("Edit", "Students", new { studentId = student.StudentId })">
  19. <img src="@student.ProfileImagePath" alt="Profile Image" title="@student.Firstname" />
  20. </a>
  21.  
  22. <div class="student-info">
  23. @Html.DisplayFor(modelItem => student.Firstname)
  24. @Html.DisplayFor(modelItem => student.Lastname)
  25. <br />
  26. @Html.DisplayFor(modelItem => student.Email)
  27. <br />
  28. @Html.DisplayFor(modelItem => student.MobilePhone)
  29. </div>
  30.  
  31.  
  32. </div>
  33. }
  34.  
  35. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement