Pastebin launched a little side project called HostCabi.net, check it out ;-)Pastebin is 300% more awesome when you are logged in. Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 4th, 2012  |  syntax: HTML 5  |  size: 0.99 KB  |  hits: 78  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. @model IEnumerable<GD.Models.Fix>
  2.  
  3.  
  4. <table>
  5.     <tr>
  6.         <th>
  7.             @Html.DisplayNameFor(model => model.Metal.Name)
  8.         </th>
  9.         <th>
  10.             @Html.DisplayNameFor(model => model.Currency.Code)
  11.         </th>
  12.         <th>
  13.             @Html.DisplayNameFor(model => model.FixAm)
  14.         </th>
  15.         <th>
  16.             @Html.DisplayNameFor(model => model.FixPm)
  17.         </th>
  18.         <th>
  19.             @Html.DisplayNameFor(model => model.Updated)
  20.         </th>
  21.     </tr>
  22.  
  23. @foreach (var item in Model) {
  24.     <tr>
  25.         <td>
  26.             @Html.DisplayFor(modelItem => item.Metal.Name)
  27.         </td>
  28.         <td>
  29.             @Html.DisplayFor(modelItem => item.Currency.Code)
  30.         </td>
  31.         <td>
  32.             @Html.DisplayFor(modelItem => item.FixAm)
  33.         </td>
  34.         <td>
  35.             @Html.DisplayFor(modelItem => item.FixPm)
  36.         </td>
  37.         <td>
  38.             @Html.DisplayFor(modelItem => item.Updated)
  39.         </td>
  40.     </tr>
  41. }
  42.  
  43. </table>