(MVC) MVC (2018)

<<назад Students/Details.vbhtml (Contoso University).

   1:  @ModelType CU_VB_3.Models.Student
   2:  @Code
   3:      ViewData("Title") = "Details"
   4:      Layout = "~/Views/Shared/_Layout.vbhtml"
   5:  End Code
   6:   
   7:  <h2>Details</h2>
   8:   
   9:  <div>
  10:      <h4>Student</h4>
  11:      <hr />
  12:      <dl class="dl-horizontal">
  13:          <dt>
  14:              @Html.DisplayNameFor(Function(model) model.LastName)
  15:          </dt>
  16:   
  17:          <dd>
  18:              @Html.DisplayFor(Function(model) model.LastName)
  19:          </dd>
  20:   
  21:          <dt>
  22:              @Html.DisplayNameFor(Function(model) model.FirstMidName)
  23:          </dt>
  24:   
  25:          <dd>
  26:              @Html.DisplayFor(Function(model) model.FirstMidName)
  27:          </dd>
  28:   
  29:          <dt>
  30:              @Html.DisplayNameFor(Function(model) model.EnrollmentDate)
  31:          </dt>
  32:   
  33:          <dd>
  34:              @Html.DisplayFor(Function(model) model.EnrollmentDate)
  35:          </dd>
  36:   
  37:      </dl>
  38:  </div>
  39:  <p>
  40:      @Html.ActionLink("Edit", "Edit", New With { .id = Model.ID }) |
  41:      @Html.ActionLink("Back to List", "Index")
  42:  </p>


Comments ( )
Link to this page: //www.vb-net.com/EF-missing-FAQ/Code/Students-Details.vbhtml.htm
< THANKS ME>