(MVC) MVC (2018)

<<назад Students-Edit.Page.htm (Contoso University).

   1:  <!DOCTYPE html>
   2:  <html>
   3:  <head>
   4:      <meta charset="utf-8" />
   5:      <meta name="viewport" content="width=device-width, initial-scale=1.0">
   6:      <title>Edit - My ASP.NET Application</title>
   7:      <link href="/Content/bootstrap.css" rel="stylesheet"/>
   8:      <link href="/Content/site.css" rel="stylesheet"/>
   9:      <script src="/Scripts/modernizr-2.8.3.js"></script>
  10:  </head>
  11:  <body>
  12:      <div class="navbar navbar-inverse navbar-fixed-top">
  13:          <div class="container">
  14:              <div class="navbar-header">
  15:                  <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
  16:                      <span class="icon-bar"></span>
  17:                      <span class="icon-bar"></span>
  18:                      <span class="icon-bar"></span>
  19:                  </button>
  20:                  <a class="navbar-brand" href="/">Application name</a>
  21:              </div>
  22:              <div class="navbar-collapse collapse">
  23:                  <ul class="nav navbar-nav">
  24:                      <li><a href="/">Home</a></li>
  25:                      <li><a href="/Home/About">About</a></li>
  26:                      <li><a href="/Home/Contact">Contact</a></li>
  27:                      <li><a href="/Students">Students</a></li>
  28:                      <li><a href="/Courses">Courses</a></li>
  29:                      <li><a href="/Instructors">Instructors</a></li>
  30:                      <li><a href="/Departments">Departments</a></li>
  31:                  </ul>
  32:              </div>
  33:          </div>
  34:      </div>
  35:      <div class="container body-content">
  36:   
  37:  <h2>Edit</h2>
  38:   
  39:  <form action="/Students/Edit/1" method="post">
  40:   
  41:          <input name="__RequestVerificationToken" type="hidden" value="Rg2XiX--2-Ylkgi3W-b7Oq0p5ZaRXAi5X_N4feQs24Y5hk0L4HjzT_gW2q_YJKbryT_XDqQpRn_Y0yxHuJgE-HVdhgj_igKidP4Kmw_bYpY1" />    
  42:   
  43:          <div class="form-horizontal">
  44:          <h4>Student</h4>
  45:          <hr />
  46:          
  47:          <input data-val="true" data-val-number="The field ID must be a number." data-val-required="The ID field is required." id="ID" name="ID" type="hidden" value="1" />
  48:   
  49:          <div class="form-group">
  50:              <label class="control-label col-md-2" for="LastName">Last Name</label>
  51:              <div class="col-md-10">
  52:                  <input class="form-control text-box single-line" data-val="true" data-val-length="The field Last Name must be a string with a maximum length of 50." data-val-length-max="50" data-val-required="The Last Name field is required." id="LastName" name="LastName" type="text" value="Alexander1" />
  53:                  <span class="field-validation-valid text-danger" data-valmsg-for="LastName" data-valmsg-replace="true"></span>
  54:              </div>
  55:          </div>
  56:   
  57:          <div class="form-group">
  58:              <label class="control-label col-md-2" for="FirstMidName">First Name</label>
  59:              <div class="col-md-10">
  60:                  <input class="form-control text-box single-line" data-val="true" data-val-length="First name cannot be longer than 50 characters." data-val-length-max="50" data-val-required="The First Name field is required." id="FirstMidName" name="FirstMidName" type="text" value="Carson" />
  61:                  <span class="field-validation-valid text-danger" data-valmsg-for="FirstMidName" data-valmsg-replace="true"></span>
  62:              </div>
  63:          </div>
  64:   
  65:          <div class="form-group">
  66:              <label class="control-label col-md-2" for="EnrollmentDate">Enrollment Date</label>
  67:              <div class="col-md-10">
  68:                  <input class="form-control text-box single-line" data-val="true" data-val-date="The field Enrollment Date must be a date." data-val-required="The Enrollment Date field is required." id="EnrollmentDate" name="EnrollmentDate" type="date" value="2010-09-01" />
  69:                  <span class="field-validation-valid text-danger" data-valmsg-for="EnrollmentDate" data-valmsg-replace="true"></span>
  70:              </div>
  71:          </div>
  72:   
  73:          <div class="form-group">
  74:              <div class="col-md-offset-2 col-md-10">
  75:                  <input type="submit" value="Save" class="btn btn-default" />
  76:              </div>
  77:          </div>
  78:      </div>
  79:  </form>
  80:  <div>
  81:      <a href="/Students">Back to List</a>
  82:  </div>
  83:          <hr />
  84:          <footer>
  85:              <p>&copy; 2019 - My ASP.NET Application</p>
  86:          </footer>
  87:      </div>
  88:   
  89:      <script src="/Scripts/jquery-3.3.1.js"></script>
  90:      <script src="/Scripts/bootstrap.js"></script>
  91:      <script src="/Scripts/jquery.validate.js"></script>
  92:      <script src="/Scripts/jquery.validate.unobtrusive.js"></script>
  93:   
  94:  </body>
  95:  </html>


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