Advertisement
Guest User

Untitled

a guest
May 24th, 2016
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.80 KB | None | 0 0
  1. model IEnumerable<MVC_DAL.BusDetails>
  2.  
  3. @Html.ActionLink("Create New", "AddBus")
  4.  
  5. <table>
  6. <tr>
  7. <th>
  8. @Html.DisplayNameFor(model => model.BusSrlNo)
  9. </th>
  10. <th>
  11. @Html.DisplayNameFor(model => model.BusName)
  12. </th>
  13. <th></th>
  14. </tr>
  15.  
  16. @foreach (var item in Model)
  17. {
  18. <tr>
  19. <td>
  20. @Html.DisplayFor(modelIte => item.BusSrlNo)
  21. </td>
  22. <td>
  23. @Html.DisplayFor(modelItem => item.BusName)
  24. </td>
  25. <td>
  26. @Html.ActionLink("Edit", "Edit", new { id=item.BusSrlNo }) |
  27. @Html.ActionLink("Details", "Details", new { id=item.BusSrlNo */ })|
  28. @Html.ActionLink("Delete", "Delete", new { id=item.BusSrlNo */ })|
  29.  
  30. </td>
  31. </tr>
  32. }
  33.  
  34. </table>
  35.  
  36. public class BusDetails
  37. {
  38. public int BusSrlNo { get; set; }
  39. public string BusName { get; set; }
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement